Color #312a2f
A nearly neutral, gray-leaning very dark magenta.
Conversions
#312a2f
rgb(49, 42, 47)
hsl(317.1, 7.7%, 17.8%)
hsv(317.1, 14.3%, 19.2%)
cmyk(0%, 14.3%, 4.1%, 80.8%)
lab(17.98, 4.32, -2.06)
lch(17.98, 4.79, 334.51)
oklch(29.5%, 0.0134, 336.3)
hwb(317.1, 16.5%, 80.8%)
Harmony colors
Accessibility
White text reads better on this background (13.97:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2e2e2e · ΔE 5.9
Deuteranopia
#2f2f2e · ΔE 6.6
Tritanopia
#312d2d · ΔE 4
Achromatopsia
#2c2c2c · ΔE 5.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312a2f;
bg-[#312a2f]
Related colors
Frequently asked questions
#312a2f (#312a2f) is rgb(49, 42, 47) in RGB.
No, #312a2f 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 #312a2f, or check how it holds up for accessibility.