Color #040f1b
A vivid, highly saturated very dark blue.
Conversions
#040f1b
rgb(4, 15, 27)
hsl(211.3, 74.2%, 6.1%)
hsv(211.3, 85.2%, 10.6%)
cmyk(85.2%, 44.4%, 0%, 89.4%)
lab(4.03, -0.24, -8.71)
lch(4.03, 8.71, 268.42)
oklch(16.4%, 0.0311, 249.12)
hwb(211.3, 1.6%, 89.4%)
Harmony colors
Accessibility
White text reads better on this background (19.28:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#090919 · ΔE 4.8
Deuteranopia
#080818 · ΔE 4.7
Tritanopia
#051616 · ΔE 8.8
Achromatopsia
#0e0e0e · ΔE 7.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040f1b;
bg-[#040f1b]
Related colors
Frequently asked questions
#040f1b (#040f1b) is rgb(4, 15, 27) in RGB.
No, #040f1b 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 #040f1b, or check how it holds up for accessibility.