Color #040d26
A vivid, highly saturated very dark blue.
Conversions
#040d26
rgb(4, 13, 38)
hsl(224.1, 81%, 8.2%)
hsv(224.1, 89.5%, 14.9%)
cmyk(89.5%, 65.8%, 0%, 85.1%)
lab(4.1, 4.61, -17.15)
lch(4.1, 17.76, 285.05)
oklch(16.8%, 0.0541, 264.06)
hwb(224.1, 1.6%, 85.1%)
Harmony colors
Accessibility
White text reads better on this background (19.25:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#080822 · ΔE 2.5
Deuteranopia
#070720 · ΔE 2.6
Tritanopia
#041e1d · ΔE 18.8
Achromatopsia
#0e0e0e · ΔE 13
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040d26;
bg-[#040d26]
Related colors
Frequently asked questions
#040d26 (#040d26) is rgb(4, 13, 38) in RGB.
No, #040d26 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 #040d26, or check how it holds up for accessibility.