Color #311e68
A moderately saturated dark blue.
Conversions
#311e68
rgb(49, 30, 104)
hsl(255.4, 55.2%, 26.3%)
hsv(255.4, 71.2%, 40.8%)
cmyk(52.9%, 71.2%, 0%, 59.2%)
lab(18.28, 29.41, -40.3)
lch(18.28, 49.89, 306.12)
oklch(30.8%, 0.1222, 288.95)
hwb(255.4, 11.8%, 59.2%)
Harmony colors
Accessibility
White text reads better on this background (13.85:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2a2a5c · ΔE 6.1
Deuteranopia
#2b2c59 · ΔE 7.3
Tritanopia
#30524f · ΔE 28.6
Achromatopsia
#2d2d2d · ΔE 24.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #311e68;
bg-[#311e68]
Related colors
Frequently asked questions
#311e68 (#311e68) is rgb(49, 30, 104) in RGB.
No, #311e68 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 #311e68, or check how it holds up for accessibility.