#042266 Color

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

Color preview

#042266

Color formats

HEX
#042266
RGB
rgb(4, 34, 102)
RGBA
rgba(4, 34, 102, 1)
HSL
hsl(222, 92%, 21%)
HSV
hsv(222, 96%, 40%)
CMYK
cmyk(96%, 67%, 0%, 60%)
CSS variable
--color-primary: #042266;
Lowercase HEX
#042266

Shades

Tints

Tones

Harmony

CSS snippets for #042266

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

Frequently asked questions

What color is #042266?+

#042266 is a HEX color with RGB value rgb(4, 34, 102) and HSL value hsl(222, 92%, 21%). Its closest CSS named color is MidnightBlue.

What is the closest Tailwind color to #042266?+

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