#31107C Color

Inspect #31107C across formats, palettes, contrast and closest named color matches.

Color preview

#31107C

Color formats

HEX
#31107C
RGB
rgb(49, 16, 124)
RGBA
rgba(49, 16, 124, 1)
HSL
hsl(258, 77%, 27%)
HSV
hsv(258, 87%, 49%)
CMYK
cmyk(60%, 87%, 0%, 51%)
CSS variable
--color-primary: #31107C;
Lowercase HEX
#31107c

Shades

Tints

Tones

Harmony

CSS snippets for #31107C

.color-31107c {
  color: #31107C;
  background-color: #31107C;
}

Frequently asked questions

What color is #31107C?+

#31107C is a HEX color with RGB value rgb(49, 16, 124) and HSL value hsl(258, 77%, 27%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #31107C?+

The closest Tailwind color is violet-950, available as the bg-violet-950 utility class.

Can I use this color in CSS?+

Yes. You can use the HEX, RGB, HSL or CSS variable output directly in CSS.

Related tools