#040251 Color

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

Color preview

#040251

Color formats

HEX
#040251
RGB
rgb(4, 2, 81)
RGBA
rgba(4, 2, 81, 1)
HSL
hsl(242, 95%, 16%)
HSV
hsv(242, 98%, 32%)
CMYK
cmyk(95%, 98%, 0%, 68%)
CSS variable
--color-primary: #040251;
Lowercase HEX
#040251

Shades

Tints

Tones

Harmony

CSS snippets for #040251

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

Frequently asked questions

What color is #040251?+

#040251 is a HEX color with RGB value rgb(4, 2, 81) and HSL value hsl(242, 95%, 16%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #040251?+

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