Color #312b3a
A nearly neutral, gray-leaning very dark purple.
Conversions
#312b3a
rgb(49, 43, 58)
hsl(264, 14.9%, 19.8%)
hsv(264, 25.9%, 22.7%)
cmyk(15.5%, 25.9%, 0%, 77.3%)
lab(18.74, 6.39, -8.57)
lch(18.74, 10.69, 306.71)
oklch(30.2%, 0.0278, 303.12)
hwb(264, 16.9%, 77.3%)
Harmony colors
Accessibility
White text reads better on this background (13.66:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2f2e37 · ΔE 4.5
Deuteranopia
#2f2f36 · ΔE 5.9
Tritanopia
#313433 · ΔE 12
Achromatopsia
#2e2e2e · ΔE 10
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312b3a;
bg-[#312b3a]
Related colors
Frequently asked questions
#312b3a (#312b3a) is rgb(49, 43, 58) in RGB.
No, #312b3a 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 #312b3a, or check how it holds up for accessibility.