#31147B Color

Inspect #31147B across formats, palettes, contrast and closest named color matches.

Color preview

#31147B

Color formats

HEX
#31147B
RGB
rgb(49, 20, 123)
RGBA
rgba(49, 20, 123, 1)
HSL
hsl(257, 72%, 28%)
HSV
hsv(257, 84%, 48%)
CMYK
cmyk(60%, 84%, 0%, 52%)
CSS variable
--color-primary: #31147B;
Lowercase HEX
#31147b

Shades

Tints

Tones

Harmony

CSS snippets for #31147B

.color-31147b {
  color: #31147B;
  background-color: #31147B;
}

Frequently asked questions

What color is #31147B?+

#31147B is a HEX color with RGB value rgb(49, 20, 123) and HSL value hsl(257, 72%, 28%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #31147B?+

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