#040C66 Color

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

Color preview

#040C66

Color formats

HEX
#040C66
RGB
rgb(4, 12, 102)
RGBA
rgba(4, 12, 102, 1)
HSL
hsl(235, 92%, 21%)
HSV
hsv(235, 96%, 40%)
CMYK
cmyk(96%, 88%, 0%, 60%)
CSS variable
--color-primary: #040C66;
Lowercase HEX
#040c66

Shades

Tints

Tones

Harmony

CSS snippets for #040C66

.color-040c66 {
  color: #040C66;
  background-color: #040C66;
}

Frequently asked questions

What color is #040C66?+

#040C66 is a HEX color with RGB value rgb(4, 12, 102) and HSL value hsl(235, 92%, 21%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #040C66?+

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