Color #312551
A muted dark blue.
Conversions
#312551
rgb(49, 37, 81)
hsl(256.4, 37.3%, 23.1%)
hsv(256.4, 54.3%, 31.8%)
cmyk(39.5%, 54.3%, 0%, 68.2%)
lab(18.23, 17.4, -25.09)
lch(18.23, 30.53, 304.74)
oklch(30.2%, 0.0775, 293.82)
hwb(256.4, 14.5%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (13.87:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2c2c49 · ΔE 5.9
Deuteranopia
#2d2e47 · ΔE 7.6
Tritanopia
#304240 · ΔE 24.2
Achromatopsia
#2c2c2c · ΔE 19.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312551;
bg-[#312551]
Related colors
Frequently asked questions
#312551 (#312551) is rgb(49, 37, 81) in RGB.
No, #312551 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 #312551, or check how it holds up for accessibility.