Color #31333b
A nearly neutral, gray-leaning dark blue.
Conversions
#31333b
rgb(49, 51, 59)
hsl(228, 9.3%, 21.2%)
hsv(228, 16.9%, 23.1%)
cmyk(16.9%, 13.6%, 0%, 76.9%)
lab(21.34, 1.15, -5.32)
lch(21.34, 5.44, 282.2)
oklch(32.2%, 0.0144, 274.37)
hwb(228, 19.2%, 76.9%)
Harmony colors
Accessibility
White text reads better on this background (12.6:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#323239 · ΔE 1.2
Deuteranopia
#323239 · ΔE 1.2
Tritanopia
#313837 · ΔE 7.4
Achromatopsia
#333333 · ΔE 5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31333b;
bg-[#31333b]
Related colors
Frequently asked questions
#31333b (#31333b) is rgb(49, 51, 59) in RGB.
No, #31333b 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 #31333b, or check how it holds up for accessibility.