Color #402f6c
A muted dark blue.
Conversions
#402f6c
rgb(64, 47, 108)
hsl(256.7, 39.4%, 30.4%)
hsv(256.7, 56.5%, 42.4%)
cmyk(40.7%, 56.5%, 0%, 57.6%)
lab(24.34, 23.39, -33.02)
lch(24.34, 40.46, 305.31)
oklch(35.7%, 0.1021, 293.38)
hwb(256.7, 18.4%, 57.6%)
Harmony colors
Accessibility
White text reads better on this background (11.41:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393961 · ΔE 6.2
Deuteranopia
#3a3b5f · ΔE 7.4
Tritanopia
#3f5856 · ΔE 25.9
Achromatopsia
#3a3a3a · ΔE 22.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402f6c;
bg-[#402f6c]
Related colors
Frequently asked questions
#402f6c (#402f6c) is rgb(64, 47, 108) in RGB.
No, #402f6c 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 #402f6c, or check how it holds up for accessibility.