Color #313a3f
A nearly neutral, gray-leaning dark blue.
Conversions
#313a3f
rgb(49, 58, 63)
hsl(201.4, 12.5%, 22%)
hsv(201.4, 22.2%, 24.7%)
cmyk(22.2%, 7.9%, 0%, 75.3%)
lab(23.8, -2.44, -4.35)
lch(23.8, 4.99, 240.71)
oklch(34.2%, 0.015, 232.06)
hwb(201.4, 19.2%, 75.3%)
Harmony colors
Accessibility
White text reads better on this background (11.62:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#35353e · ΔE 6.6
Deuteranopia
#35343e · ΔE 7.6
Tritanopia
#313d3d · ΔE 4.1
Achromatopsia
#393939 · ΔE 5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313a3f;
bg-[#313a3f]
Related colors
Frequently asked questions
#313a3f (#313a3f) is rgb(49, 58, 63) in RGB.
No, #313a3f 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 #313a3f, or check how it holds up for accessibility.