Color #5f5872
A nearly neutral, gray-leaning dark blue.
Conversions
#5f5872
rgb(95, 88, 114)
hsl(256.2, 12.9%, 39.6%)
hsv(256.2, 22.8%, 44.7%)
cmyk(16.7%, 22.8%, 0%, 55.3%)
lab(38.95, 8.63, -13.75)
lch(38.95, 16.23, 302.11)
oklch(47.7%, 0.0421, 297.11)
hwb(256.2, 34.5%, 55.3%)
Harmony colors
Accessibility
White text reads better on this background (6.72:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5c5c6c · ΔE 5.5
Deuteranopia
#5c5d6b · ΔE 6.7
Tritanopia
#5f6867 · ΔE 17
Achromatopsia
#5c5c5c · ΔE 13.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f5872;
bg-[#5f5872]
Related colors
Frequently asked questions
#5f5872 (#5f5872) is rgb(95, 88, 114) in RGB.
No, #5f5872 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 #5f5872, or check how it holds up for accessibility.