Color #28042f
A vivid, highly saturated very dark magenta.
Conversions
#28042f
rgb(40, 4, 47)
hsl(290.2, 84.3%, 10%)
hsv(290.2, 91.5%, 18.4%)
cmyk(14.9%, 91.5%, 0%, 81.6%)
lab(6.71, 25.57, -19.57)
lch(6.71, 32.2, 322.57)
oklch(20.7%, 0.0872, 320.63)
hwb(290.2, 1.6%, 81.6%)
Harmony colors
Accessibility
White text reads better on this background (18.28:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1d1d29 · ΔE 15.8
Deuteranopia
#1f2127 · ΔE 19.2
Tritanopia
#272321 · ΔE 21.7
Achromatopsia
#151515 · ΔE 21.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #28042f;
bg-[#28042f]
Related colors
Frequently asked questions
#28042f (#28042f) is rgb(40, 4, 47) in RGB.
No, #28042f 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 #28042f, or check how it holds up for accessibility.