Color #313852
A muted dark blue.
Conversions
#313852
rgb(49, 56, 82)
hsl(227.3, 25.2%, 25.7%)
hsv(227.3, 40.2%, 32.2%)
cmyk(40.2%, 31.7%, 0%, 67.8%)
lab(23.97, 4.54, -16.73)
lch(23.97, 17.34, 285.18)
oklch(34.6%, 0.0466, 272.21)
hwb(227.3, 19.2%, 67.8%)
Harmony colors
Accessibility
White text reads better on this background (11.55:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#34344d · ΔE 3.1
Deuteranopia
#34334b · ΔE 3.7
Tritanopia
#314847 · ΔE 18.1
Achromatopsia
#393939 · ΔE 12.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313852;
bg-[#313852]
Related colors
Frequently asked questions
#313852 (#313852) is rgb(49, 56, 82) in RGB.
No, #313852 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 #313852, or check how it holds up for accessibility.