Color #331f7d
A moderately saturated dark blue.
Conversions
#331f7d
rgb(51, 31, 125)
hsl(252.8, 60.3%, 30.6%)
hsv(252.8, 75.2%, 49%)
cmyk(59.2%, 75.2%, 0%, 51%)
lab(20.69, 35.9, -49.89)
lch(20.69, 61.46, 305.74)
oklch(33.2%, 0.1484, 284.67)
hwb(252.8, 12.2%, 51%)
Harmony colors
Accessibility
White text reads better on this background (12.86:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2b6f · ΔE 5.3
Deuteranopia
#2d2e6b · ΔE 6.8
Tritanopia
#32625f · ΔE 32.2
Achromatopsia
#323232 · ΔE 26
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #331f7d;
bg-[#331f7d]
Related colors
Frequently asked questions
#331f7d (#331f7d) is rgb(51, 31, 125) in RGB.
No, #331f7d 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 #331f7d, or check how it holds up for accessibility.