Color #40274b
A muted dark purple.
Conversions
#40274b
rgb(64, 39, 75)
hsl(281.7, 31.6%, 22.4%)
hsv(281.7, 48%, 29.4%)
cmyk(14.7%, 48%, 0%, 70.6%)
lab(20.24, 19.29, -17.74)
lch(20.24, 26.21, 317.4)
oklch(32%, 0.0693, 314.88)
hwb(281.7, 15.3%, 70.6%)
Harmony colors
Accessibility
White text reads better on this background (13.05:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#373744 · ΔE 13.3
Deuteranopia
#383a43 · ΔE 15.9
Tritanopia
#3f3e3d · ΔE 19.9
Achromatopsia
#313131 · ΔE 19
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40274b;
bg-[#40274b]
Related colors
Frequently asked questions
#40274b (#40274b) is rgb(64, 39, 75) in RGB.
No, #40274b 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 #40274b, or check how it holds up for accessibility.