Color #402a71
A moderately saturated dark blue.
Conversions
#402a71
rgb(64, 42, 113)
hsl(258.6, 45.8%, 30.4%)
hsv(258.6, 62.8%, 44.3%)
cmyk(43.4%, 62.8%, 0%, 55.7%)
lab(23.47, 28.11, -37.64)
lch(23.47, 46.98, 306.75)
oklch(35.2%, 0.1172, 293.81)
hwb(258.6, 16.5%, 55.7%)
Harmony colors
Accessibility
White text reads better on this background (11.75:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#383765 · ΔE 6.8
Deuteranopia
#393a62 · ΔE 8.4
Tritanopia
#3f5b58 · ΔE 27.6
Achromatopsia
#383838 · ΔE 23.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402a71;
bg-[#402a71]
Related colors
Frequently asked questions
#402a71 (#402a71) is rgb(64, 42, 113) in RGB.
No, #402a71 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 #402a71, or check how it holds up for accessibility.