Color #402c72
A moderately saturated dark blue.
Conversions
#402c72
rgb(64, 44, 114)
hsl(257.1, 44.3%, 31%)
hsv(257.1, 61.4%, 44.7%)
cmyk(43.9%, 61.4%, 0%, 55.3%)
lab(24.02, 27.16, -37.39)
lch(24.02, 46.21, 305.99)
oklch(35.6%, 0.1155, 292.77)
hwb(257.1, 17.3%, 55.3%)
Harmony colors
Accessibility
White text reads better on this background (11.53:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#383866 · ΔE 6.6
Deuteranopia
#393b63 · ΔE 8.1
Tritanopia
#3f5c59 · ΔE 27.6
Achromatopsia
#393939 · ΔE 23.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402c72;
bg-[#402c72]
Related colors
Frequently asked questions
#402c72 (#402c72) is rgb(64, 44, 114) in RGB.
No, #402c72 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 #402c72, or check how it holds up for accessibility.