Color #40306c
A muted dark blue.
Conversions
#40306c
rgb(64, 48, 108)
hsl(256, 38.5%, 30.6%)
hsv(256, 55.6%, 42.4%)
cmyk(40.7%, 55.6%, 0%, 57.6%)
lab(24.6, 22.73, -32.61)
lch(24.6, 39.75, 304.88)
oklch(35.9%, 0.1003, 292.94)
hwb(256, 18.8%, 57.6%)
Harmony colors
Accessibility
White text reads better on this background (11.31:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3a3a61 · ΔE 6.2
Deuteranopia
#3b3c5f · ΔE 7.4
Tritanopia
#3f5856 · ΔE 25.8
Achromatopsia
#3a3a3a · ΔE 22.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #40306c;
bg-[#40306c]
Related colors
Frequently asked questions
#40306c (#40306c) is rgb(64, 48, 108) in RGB.
No, #40306c 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 #40306c, or check how it holds up for accessibility.