Color #12172a
A moderately saturated very dark blue.
Conversions
#12172a
rgb(18, 23, 42)
hsl(227.5, 40%, 11.8%)
hsv(227.5, 57.1%, 16.5%)
cmyk(57.1%, 45.2%, 0%, 83.5%)
lab(8.2, 4.26, -13.67)
lch(8.2, 14.32, 287.31)
oklch(21%, 0.0385, 271.64)
hwb(227.5, 7.1%, 83.5%)
Harmony colors
Accessibility
White text reads better on this background (17.77:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#141426 · ΔE 2.3
Deuteranopia
#141425 · ΔE 2.3
Tritanopia
#122322 · ΔE 16.2
Achromatopsia
#181818 · ΔE 11.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #12172a;
bg-[#12172a]
Related colors
Frequently asked questions
#12172a (#12172a) is rgb(18, 23, 42) in RGB.
No, #12172a 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 #12172a, or check how it holds up for accessibility.