Color #281f2e
A muted very dark purple.
Conversions
#281f2e
rgb(40, 31, 46)
hsl(276, 19.5%, 15.1%)
hsv(276, 32.6%, 18%)
cmyk(13%, 32.6%, 0%, 82%)
lab(13.4, 7.96, -8.34)
lch(13.4, 11.53, 313.66)
oklch(25.7%, 0.0304, 311.4)
hwb(276, 12.2%, 82%)
Harmony colors
Accessibility
White text reads better on this background (15.84:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#24242b · ΔE 7.2
Deuteranopia
#25262a · ΔE 9.3
Tritanopia
#282828 · ΔE 11.1
Achromatopsia
#222222 · ΔE 11
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #281f2e;
bg-[#281f2e]
Related colors
Frequently asked questions
#281f2e (#281f2e) is rgb(40, 31, 46) in RGB.
No, #281f2e 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 #281f2e, or check how it holds up for accessibility.