Color #402d6e
A moderately saturated dark blue.
Conversions
#402d6e
rgb(64, 45, 110)
hsl(257.5, 41.9%, 30.4%)
hsv(257.5, 59.1%, 43.1%)
cmyk(41.8%, 59.1%, 0%, 56.9%)
lab(23.97, 25.29, -34.9)
lch(23.97, 43.1, 305.93)
oklch(35.5%, 0.1083, 293.63)
hwb(257.5, 17.6%, 56.9%)
Harmony colors
Accessibility
White text reads better on this background (11.55:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393863 · ΔE 6.3
Deuteranopia
#3a3b60 · ΔE 8
Tritanopia
#3f5957 · ΔE 26.3
Achromatopsia
#393939 · ΔE 22.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402d6e;
bg-[#402d6e]
Related colors
Frequently asked questions
#402d6e (#402d6e) is rgb(64, 45, 110) in RGB.
No, #402d6e 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 #402d6e, or check how it holds up for accessibility.