Color #28172e
A muted very dark purple.
Conversions
#28172e
rgb(40, 23, 46)
hsl(284.3, 33.3%, 13.5%)
hsv(284.3, 50%, 18%)
cmyk(13%, 50%, 0%, 82%)
lab(11, 13.72, -12.05)
lch(11, 18.26, 318.71)
oklch(23.8%, 0.0486, 316.92)
hwb(284.3, 9%, 82%)
Harmony colors
Accessibility
White text reads better on this background (16.77:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#22222a · ΔE 11.6
Deuteranopia
#232429 · ΔE 13.6
Tritanopia
#272625 · ΔE 16
Achromatopsia
#1d1d1d · ΔE 15.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #28172e;
bg-[#28172e]
Related colors
Frequently asked questions
#28172e (#28172e) is rgb(40, 23, 46) in RGB.
No, #28172e 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 #28172e, or check how it holds up for accessibility.