Color #313958
A muted dark blue.
Conversions
#313958
rgb(49, 57, 88)
hsl(227.7, 28.5%, 26.9%)
hsv(227.7, 44.3%, 34.5%)
cmyk(44.3%, 35.2%, 0%, 65.5%)
lab(24.59, 5.81, -19.71)
lch(24.59, 20.55, 286.42)
oklch(35.2%, 0.0552, 272.28)
hwb(227.7, 19.2%, 65.5%)
Harmony colors
Accessibility
White text reads better on this background (11.31:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#353552 · ΔE 3.2
Deuteranopia
#343450 · ΔE 3.4
Tritanopia
#314c4b · ΔE 20.2
Achromatopsia
#3a3a3a · ΔE 14.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313958;
bg-[#313958]
Related colors
Frequently asked questions
#313958 (#313958) is rgb(49, 57, 88) in RGB.
No, #313958 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 #313958, or check how it holds up for accessibility.