Color #31334b
A muted dark blue.
Conversions
#31334b
rgb(49, 51, 75)
hsl(235.4, 21%, 24.3%)
hsv(235.4, 34.7%, 29.4%)
cmyk(34.7%, 32%, 0%, 70.6%)
lab(22.05, 5.77, -15.05)
lch(22.05, 16.12, 290.98)
oklch(33%, 0.0425, 280.17)
hwb(235.4, 19.2%, 70.6%)
Harmony colors
Accessibility
White text reads better on this background (12.31:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#323246 · ΔE 1.8
Deuteranopia
#323245 · ΔE 2.2
Tritanopia
#314241 · ΔE 17.5
Achromatopsia
#353535 · ΔE 12.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #31334b;
bg-[#31334b]
Related colors
Frequently asked questions
#31334b (#31334b) is rgb(49, 51, 75) in RGB.
No, #31334b 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 #31334b, or check how it holds up for accessibility.