Color #040d12
A moderately saturated very dark blue.
Conversions
#040d12
rgb(4, 13, 18)
hsl(201.4, 63.6%, 4.3%)
hsv(201.4, 77.8%, 7.1%)
cmyk(77.8%, 27.8%, 0%, 92.9%)
lab(3.23, -1.49, -3.38)
lch(3.23, 3.69, 246.21)
oklch(15.2%, 0.0189, 229.92)
hwb(201.4, 1.6%, 92.9%)
Harmony colors
Accessibility
White text reads better on this background (19.6:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#080811 · ΔE 4.3
Deuteranopia
#070711 · ΔE 4.5
Tritanopia
#041010 · ΔE 3.3
Achromatopsia
#0c0c0c · ΔE 3.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040d12;
bg-[#040d12]
Related colors
Frequently asked questions
#040d12 (#040d12) is rgb(4, 13, 18) in RGB.
No, #040d12 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 #040d12, or check how it holds up for accessibility.