#331E4D Color

Inspect #331E4D across formats, palettes, contrast and closest named color matches.

Color preview

#331E4D

Color formats

HEX
#331E4D
RGB
rgb(51, 30, 77)
RGBA
rgba(51, 30, 77, 1)
HSL
hsl(267, 44%, 21%)
HSV
hsv(267, 61%, 30%)
CMYK
cmyk(34%, 61%, 0%, 70%)
CSS variable
--color-primary: #331E4D;
Lowercase HEX
#331e4d

Shades

Tints

Tones

Harmony

CSS snippets for #331E4D

.color-331e4d {
  color: #331E4D;
  background-color: #331E4D;
}

Frequently asked questions

What color is #331E4D?+

#331E4D is a HEX color with RGB value rgb(51, 30, 77) and HSL value hsl(267, 44%, 21%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #331E4D?+

The closest Tailwind color is indigo-950, available as the bg-indigo-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