Color #313d7f
A moderately saturated dark blue.
Conversions
#313d7f
rgb(49, 61, 127)
hsl(230.8, 44.3%, 34.5%)
hsv(230.8, 61.4%, 49.8%)
cmyk(61.4%, 52%, 0%, 50.2%)
lab(28.17, 16.81, -38.99)
lch(28.17, 42.46, 293.32)
oklch(38.7%, 0.1116, 272.41)
hwb(230.8, 19.2%, 50.2%)
Harmony colors
Accessibility
White text reads better on this background (9.98:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#373773 · ΔE 3.5
Deuteranopia
#363570 · ΔE 4.1
Tritanopia
#326966 · ΔE 28.8
Achromatopsia
#424242 · ΔE 22.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #313d7f;
bg-[#313d7f]
Related colors
Frequently asked questions
#313d7f (#313d7f) is rgb(49, 61, 127) in RGB.
No, #313d7f 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 #313d7f, or check how it holds up for accessibility.