#312178 Color

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

Color preview

#312178

Color formats

HEX
#312178
RGB
rgb(49, 33, 120)
RGBA
rgba(49, 33, 120, 1)
HSL
hsl(251, 57%, 30%)
HSV
hsv(251, 73%, 47%)
CMYK
cmyk(59%, 73%, 0%, 53%)
CSS variable
--color-primary: #312178;
Lowercase HEX
#312178

Shades

Tints

Tones

Harmony

CSS snippets for #312178

.color-312178 {
  color: #312178;
  background-color: #312178;
}

Frequently asked questions

What color is #312178?+

#312178 is a HEX color with RGB value rgb(49, 33, 120) and HSL value hsl(251, 57%, 30%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #312178?+

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