Color #312b38
A nearly neutral, gray-leaning very dark purple.
Conversions
#312b38
rgb(49, 43, 56)
hsl(267.7, 13.1%, 19.4%)
hsv(267.7, 23.2%, 22%)
cmyk(12.5%, 23.2%, 0%, 78%)
lab(18.65, 5.86, -7.32)
lch(18.65, 9.38, 308.68)
oklch(30.1%, 0.0245, 306.03)
hwb(267.7, 16.9%, 78%)
Harmony colors
Accessibility
White text reads better on this background (13.7:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2f2e35 · ΔE 4.7
Deuteranopia
#2f2f34 · ΔE 6.2
Tritanopia
#313332 · ΔE 10.7
Achromatopsia
#2d2d2d · ΔE 9.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312b38;
bg-[#312b38]
Related colors
Frequently asked questions
#312b38 (#312b38) is rgb(49, 43, 56) in RGB.
No, #312b38 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 #312b38, or check how it holds up for accessibility.