Color #402da2
A moderately saturated medium blue.
Conversions
#402da2
rgb(64, 45, 162)
hsl(249.7, 56.5%, 40.6%)
hsv(249.7, 72.2%, 63.5%)
cmyk(60.5%, 72.2%, 0%, 36.5%)
lab(28.31, 41.62, -60.27)
lch(28.31, 73.24, 304.63)
oklch(40%, 0.1777, 282.21)
hwb(249.7, 17.6%, 36.5%)
Harmony colors
Accessibility
White text reads better on this background (9.93:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#393890 · ΔE 4.8
Deuteranopia
#3a3b8c · ΔE 6
Tritanopia
#3f807c · ΔE 37.2
Achromatopsia
#434343 · ΔE 27.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #402da2;
bg-[#402da2]
Related colors
Frequently asked questions
#402da2 (#402da2) is rgb(64, 45, 162) in RGB.
No, #402da2 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 #402da2, or check how it holds up for accessibility.