Color #31323e
A nearly neutral, gray-leaning dark blue.
Conversions
#31323e
rgb(49, 50, 62)
hsl(235.4, 11.7%, 21.8%)
hsv(235.4, 21%, 24.3%)
cmyk(21%, 19.4%, 0%, 75.7%)
lab(21.14, 2.64, -7.67)
lch(21.14, 8.11, 288.99)
oklch(32.1%, 0.0213, 281.36)
hwb(235.4, 19.2%, 75.7%)
Harmony colors
Accessibility
White text reads better on this background (12.68:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#31313b · ΔE 1.1
Deuteranopia
#31313b · ΔE 1.1
Tritanopia
#313939 · ΔE 9.6
Achromatopsia
#333333 · ΔE 7.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31323e;
bg-[#31323e]
Related colors
Frequently asked questions
#31323e (#31323e) is rgb(49, 50, 62) in RGB.
No, #31323e 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 #31323e, or check how it holds up for accessibility.