#040218 Color

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

Color preview

#040218

Color formats

HEX
#040218
RGB
rgb(4, 2, 24)
RGBA
rgba(4, 2, 24, 1)
HSL
hsl(245, 85%, 5%)
HSV
hsv(245, 92%, 9%)
CMYK
cmyk(83%, 92%, 0%, 91%)
CSS variable
--color-primary: #040218;
Lowercase HEX
#040218

Shades

Tints

Tones

Harmony

CSS snippets for #040218

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

Frequently asked questions

What color is #040218?+

#040218 is a HEX color with RGB value rgb(4, 2, 24) and HSL value hsl(245, 85%, 5%). Its closest CSS named color is Black.

What is the closest Tailwind color to #040218?+

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