Color #40507b
A muted dark blue.
Conversions
#40507b
rgb(64, 80, 123)
hsl(223.7, 31.6%, 36.7%)
hsv(223.7, 48%, 48.2%)
cmyk(48%, 35%, 0%, 51.8%)
lab(34.51, 6.37, -26.37)
lch(34.51, 27.13, 283.58)
oklch(43.8%, 0.0742, 267.76)
hwb(223.7, 25.1%, 51.8%)
Harmony colors
Accessibility
White text reads better on this background (7.92:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#474872 · ΔE 5
Deuteranopia
#474570 · ΔE 6.1
Tritanopia
#416b69 · ΔE 23.2
Achromatopsia
#515151 · ΔE 17.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40507b;
bg-[#40507b]
Related colors
Frequently asked questions
#40507b (#40507b) is rgb(64, 80, 123) in RGB.
No, #40507b 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 #40507b, or check how it holds up for accessibility.