Color #402f79
A moderately saturated dark blue.
Conversions
#402f79
rgb(64, 47, 121)
hsl(253.8, 44%, 32.9%)
hsv(253.8, 61.2%, 47.5%)
cmyk(47.1%, 61.2%, 0%, 52.5%)
lab(25.27, 27.43, -39.83)
lch(25.27, 48.36, 304.55)
oklch(36.7%, 0.1208, 289.7)
hwb(253.8, 18.4%, 52.5%)
Harmony colors
Accessibility
White text reads better on this background (11.05:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#39396d · ΔE 5.5
Deuteranopia
#3a3b69 · ΔE 6.8
Tritanopia
#3f615f · ΔE 27.9
Achromatopsia
#3c3c3c · ΔE 23.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402f79;
bg-[#402f79]
Related colors
Frequently asked questions
#402f79 (#402f79) is rgb(64, 47, 121) in RGB.
No, #402f79 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 #402f79, or check how it holds up for accessibility.