Color #31182a
A muted very dark magenta.
Conversions
#31182a
rgb(49, 24, 42)
hsl(316.8, 34.2%, 14.3%)
hsv(316.8, 51%, 19.2%)
cmyk(0%, 51%, 14.3%, 80.8%)
lab(12.44, 15.71, -6.8)
lch(12.44, 17.12, 336.59)
oklch(25.2%, 0.0493, 338.33)
hwb(316.8, 9.4%, 80.8%)
Harmony colors
Accessibility
White text reads better on this background (16.22:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#282826 · ΔE 17.6
Deuteranopia
#292b26 · ΔE 21.5
Tritanopia
#302323 · ΔE 10.5
Achromatopsia
#202020 · ΔE 15.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31182a;
bg-[#31182a]
Related colors
Frequently asked questions
#31182a (#31182a) is rgb(49, 24, 42) in RGB.
No, #31182a 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 #31182a, or check how it holds up for accessibility.