Color #401227
A moderately saturated very dark pink.
Conversions
#401227
rgb(64, 18, 39)
hsl(332.6, 56.1%, 16.1%)
hsv(332.6, 71.9%, 25.1%)
cmyk(0%, 71.9%, 39.1%, 74.9%)
lab(13.65, 24.72, -2.51)
lch(13.65, 24.85, 354.2)
oklch(26.6%, 0.0758, 355.23)
hwb(332.6, 7.1%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (15.74:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#323123 · ΔE 28.3
Deuteranopia
#343722 · ΔE 33.3
Tritanopia
#3f201f · ΔE 9.5
Achromatopsia
#232323 · ΔE 19.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #401227;
bg-[#401227]
Related colors
Frequently asked questions
#401227 (#401227) is rgb(64, 18, 39) in RGB.
No, #401227 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 #401227, or check how it holds up for accessibility.