Color #402b6a
A moderately saturated dark purple.
Conversions
#402b6a
rgb(64, 43, 106)
hsl(260, 42.3%, 29.2%)
hsv(260, 59.4%, 41.6%)
cmyk(39.6%, 59.4%, 0%, 58.4%)
lab(23.2, 25.36, -33.56)
lch(23.2, 42.06, 307.08)
oklch(34.8%, 0.1057, 295.79)
hwb(260, 16.9%, 58.4%)
Harmony colors
Accessibility
White text reads better on this background (11.85:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#38385f · ΔE 7.3
Deuteranopia
#393b5c · ΔE 9.1
Tritanopia
#3f5653 · ΔE 26.5
Achromatopsia
#373737 · ΔE 22.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402b6a;
bg-[#402b6a]
Related colors
Frequently asked questions
#402b6a (#402b6a) is rgb(64, 43, 106) in RGB.
No, #402b6a 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 #402b6a, or check how it holds up for accessibility.