Color #040f1c
A vivid, highly saturated very dark blue.
Conversions
#040f1c
rgb(4, 15, 28)
hsl(212.5, 75%, 6.3%)
hsv(212.5, 85.7%, 11%)
cmyk(85.7%, 46.4%, 0%, 89%)
lab(4.08, 0.06, -9.43)
lch(4.08, 9.43, 270.36)
oklch(16.5%, 0.0329, 251.01)
hwb(212.5, 1.6%, 89%)
Harmony colors
Accessibility
White text reads better on this background (19.26:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#090919 · ΔE 4.5
Deuteranopia
#080819 · ΔE 4.6
Tritanopia
#051717 · ΔE 9.7
Achromatopsia
#0e0e0e · ΔE 7.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040f1c;
bg-[#040f1c]
Related colors
Frequently asked questions
#040f1c (#040f1c) is rgb(4, 15, 28) in RGB.
No, #040f1c is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #040f1c, or check how it holds up for accessibility.