Color #40384a
A nearly neutral, gray-leaning dark purple.
Conversions
#40384a
rgb(64, 56, 74)
hsl(266.7, 13.8%, 25.5%)
hsv(266.7, 24.3%, 29%)
cmyk(13.5%, 24.3%, 0%, 71%)
lab(24.99, 7.67, -9.74)
lch(24.99, 12.4, 308.22)
oklch(35.6%, 0.0324, 305.06)
hwb(266.7, 22%, 71%)
Harmony colors
Accessibility
White text reads better on this background (11.16:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3d3d46 · ΔE 6.6
Deuteranopia
#3d3e45 · ΔE 8
Tritanopia
#404342 · ΔE 13.2
Achromatopsia
#3b3b3b · ΔE 11.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40384a;
bg-[#40384a]
Related colors
Frequently asked questions
#40384a (#40384a) is rgb(64, 56, 74) in RGB.
No, #40384a 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 #40384a, or check how it holds up for accessibility.