Color #040d1f
A vivid, highly saturated very dark blue.
Conversions
#040d1f
rgb(4, 13, 31)
hsl(220, 77.1%, 6.9%)
hsv(220, 87.1%, 12.2%)
cmyk(87.1%, 58.1%, 0%, 87.8%)
lab(3.73, 2.01, -12.31)
lch(3.73, 12.47, 279.27)
oklch(16.1%, 0.0413, 260.24)
hwb(220, 1.6%, 87.8%)
Harmony colors
Accessibility
White text reads better on this background (19.4:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#08081c · ΔE 3.2
Deuteranopia
#07071b · ΔE 3.2
Tritanopia
#041918 · ΔE 13.9
Achromatopsia
#0d0d0d · ΔE 9.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040d1f;
bg-[#040d1f]
Related colors
Frequently asked questions
#040d1f (#040d1f) is rgb(4, 13, 31) in RGB.
No, #040d1f 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 #040d1f, or check how it holds up for accessibility.