Color #040c06
A moderately saturated very dark green.
Conversions
#040c06
rgb(4, 12, 6)
hsl(135, 50%, 3.1%)
hsv(135, 66.7%, 4.7%)
cmyk(66.7%, 0%, 50%, 95.3%)
lab(2.73, -2.97, 1.57)
lch(2.73, 3.36, 152.14)
oklch(14.2%, 0.0205, 153.06)
hwb(135, 1.6%, 95.3%)
Harmony colors
Accessibility
White text reads better on this background (19.8:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#080807 · ΔE 4
Deuteranopia
#070608 · ΔE 5.3
Tritanopia
#040909 · ΔE 2.9
Achromatopsia
#0a0a0a · ΔE 4.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #040c06;
bg-[#040c06]
Related colors
Frequently asked questions
#040c06 (#040c06) is rgb(4, 12, 6) in RGB.
No, #040c06 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 #040c06, or check how it holds up for accessibility.