Color #31182b
A muted very dark magenta.
Conversions
#31182b
rgb(49, 24, 43)
hsl(314.4, 34.2%, 14.3%)
hsv(314.4, 51%, 19.2%)
cmyk(0%, 51%, 12.2%, 80.8%)
lab(12.49, 15.93, -7.46)
lch(12.49, 17.59, 334.91)
oklch(25.2%, 0.0503, 336.55)
hwb(314.4, 9.4%, 80.8%)
Harmony colors
Accessibility
White text reads better on this background (16.2:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#282827 · ΔE 17
Deuteranopia
#292b26 · ΔE 21.7
Tritanopia
#302423 · ΔE 11.7
Achromatopsia
#202020 · ΔE 15.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31182b;
bg-[#31182b]
Related colors
Frequently asked questions
#31182b (#31182b) is rgb(49, 24, 43) in RGB.
No, #31182b 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 #31182b, or check how it holds up for accessibility.