Color #0c040c
A moderately saturated very dark magenta.
Conversions
#0c040c
rgb(12, 4, 12)
hsl(300, 50%, 3.1%)
hsv(300, 66.7%, 4.7%)
cmyk(0%, 66.7%, 0%, 95.3%)
lab(1.73, 3.25, -2.32)
lch(1.73, 3.99, 324.48)
oklch(12.7%, 0.0263, 327.09)
hwb(300, 1.6%, 95.3%)
Harmony colors
Accessibility
White text reads better on this background (20.23:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#09090a · ΔE 4.5
Deuteranopia
#090a0a · ΔE 5.2
Tritanopia
#0c0908 · ΔE 4.4
Achromatopsia
#060606 · ΔE 4.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0c040c;
bg-[#0c040c]
Related colors
Frequently asked questions
#0c040c (#0c040c) is rgb(12, 4, 12) in RGB.
No, #0c040c 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 #0c040c, or check how it holds up for accessibility.