Color #313a56
A muted dark blue.
Conversions
#313a56
rgb(49, 58, 86)
hsl(225.4, 27.4%, 26.5%)
hsv(225.4, 43%, 33.7%)
cmyk(43%, 32.6%, 0%, 66.3%)
lab(24.8, 4.47, -18.07)
lch(24.8, 18.61, 283.89)
oklch(35.3%, 0.0505, 270)
hwb(225.4, 19.2%, 66.3%)
Harmony colors
Accessibility
White text reads better on this background (11.23:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353550 · ΔE 3.9
Deuteranopia
#35344f · ΔE 4.4
Tritanopia
#314b4a · ΔE 18.8
Achromatopsia
#3b3b3b · ΔE 13.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313a56;
bg-[#313a56]
Related colors
Frequently asked questions
#313a56 (#313a56) is rgb(49, 58, 86) in RGB.
No, #313a56 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 #313a56, or check how it holds up for accessibility.