#04054F Color

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

Color preview

#04054F

Color formats

HEX
#04054F
RGB
rgb(4, 5, 79)
RGBA
rgba(4, 5, 79, 1)
HSL
hsl(239, 90%, 16%)
HSV
hsv(239, 95%, 31%)
CMYK
cmyk(95%, 94%, 0%, 69%)
CSS variable
--color-primary: #04054F;
Lowercase HEX
#04054f

Shades

Tints

Tones

Harmony

CSS snippets for #04054F

.color-04054f {
  color: #04054F;
  background-color: #04054F;
}

Frequently asked questions

What color is #04054F?+

#04054F is a HEX color with RGB value rgb(4, 5, 79) and HSL value hsl(239, 90%, 16%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #04054F?+

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