#2E1F8E Color

Inspect #2E1F8E across formats, palettes, contrast and closest named color matches.

Color preview

#2E1F8E

Color formats

HEX
#2E1F8E
RGB
rgb(46, 31, 142)
RGBA
rgba(46, 31, 142, 1)
HSL
hsl(248, 64%, 34%)
HSV
hsv(248, 78%, 56%)
CMYK
cmyk(68%, 78%, 0%, 44%)
CSS variable
--color-primary: #2E1F8E;
Lowercase HEX
#2e1f8e

Shades

Tints

Tones

Harmony

CSS snippets for #2E1F8E

.color-2e1f8e {
  color: #2E1F8E;
  background-color: #2E1F8E;
}

Frequently asked questions

What color is #2E1F8E?+

#2E1F8E is a HEX color with RGB value rgb(46, 31, 142) and HSL value hsl(248, 64%, 34%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #2E1F8E?+

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