Color #172242
A moderately saturated very dark blue.
Conversions
#172242
rgb(23, 34, 66)
hsl(224.7, 48.3%, 17.5%)
hsv(224.7, 65.2%, 25.9%)
cmyk(65.2%, 48.5%, 0%, 74.1%)
lab(13.94, 6.85, -21.79)
lch(13.94, 22.84, 287.45)
oklch(26.1%, 0.0621, 267.69)
hwb(224.7, 9%, 74.1%)
Harmony colors
Accessibility
White text reads better on this background (15.63:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1c1c3c · ΔE 3.9
Deuteranopia
#1c1b3a · ΔE 4.3
Tritanopia
#183735 · ΔE 22.1
Achromatopsia
#232323 · ΔE 15.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #172242;
bg-[#172242]
Related colors
Frequently asked questions
#172242 (#172242) is rgb(23, 34, 66) in RGB.
No, #172242 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 #172242, or check how it holds up for accessibility.