Color #312848
A muted dark blue.
Conversions
#312848
rgb(49, 40, 72)
hsl(256.9, 28.6%, 22%)
hsv(256.9, 44.4%, 28.2%)
cmyk(31.9%, 44.4%, 0%, 71.8%)
lab(18.53, 12.51, -18.51)
lch(18.53, 22.34, 304.05)
oklch(30.3%, 0.0574, 295.72)
hwb(256.9, 15.7%, 71.8%)
Harmony colors
Accessibility
White text reads better on this background (13.75:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2d2d42 · ΔE 5.9
Deuteranopia
#2e2e40 · ΔE 7.1
Tritanopia
#313d3b · ΔE 21.4
Achromatopsia
#2d2d2d · ΔE 16.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #312848;
bg-[#312848]
Related colors
Frequently asked questions
#312848 (#312848) is rgb(49, 40, 72) in RGB.
No, #312848 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 #312848, or check how it holds up for accessibility.