Color #333040
A nearly neutral, gray-leaning dark blue.
Conversions
#333040
rgb(51, 48, 64)
hsl(251.3, 14.3%, 22%)
hsv(251.3, 25%, 25.1%)
cmyk(20.3%, 25%, 0%, 74.9%)
lab(20.78, 5.35, -9.56)
lch(20.78, 10.96, 299.23)
oklch(31.9%, 0.0284, 293.41)
hwb(251.3, 18.8%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (12.82:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#32323d · ΔE 3.3
Deuteranopia
#32323c · ΔE 3.8
Tritanopia
#333a39 · ΔE 13
Achromatopsia
#323232 · ΔE 9.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #333040;
bg-[#333040]
Related colors
Frequently asked questions
#333040 (#333040) is rgb(51, 48, 64) in RGB.
No, #333040 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 #333040, or check how it holds up for accessibility.