Color #404050
A nearly neutral, gray-leaning dark blue.
Conversions
#404050
rgb(64, 64, 80)
hsl(240, 11.1%, 28.2%)
hsv(240, 20%, 31.4%)
cmyk(20%, 20%, 0%, 68.6%)
lab(27.67, 3.92, -9.62)
lch(27.67, 10.39, 292.17)
oklch(37.8%, 0.0271, 284.96)
hwb(240, 25.1%, 68.6%)
Harmony colors
Accessibility
White text reads better on this background (10.16:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#40404c · ΔE 2
Deuteranopia
#40404c · ΔE 2
Tritanopia
#404a49 · ΔE 12.6
Achromatopsia
#414141 · ΔE 9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #404050;
bg-[#404050]
Related colors
Frequently asked questions
#404050 (#404050) is rgb(64, 64, 80) in RGB.
No, #404050 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 #404050, or check how it holds up for accessibility.