Color #212f59
A moderately saturated dark blue.
Conversions
#212f59
rgb(33, 47, 89)
hsl(225, 45.9%, 23.9%)
hsv(225, 62.9%, 34.9%)
cmyk(62.9%, 47.2%, 0%, 65.1%)
lab(20.35, 8.81, -27.14)
lch(20.35, 28.53, 287.98)
oklch(31.7%, 0.0774, 267.93)
hwb(225, 12.9%, 65.1%)
Harmony colors
Accessibility
White text reads better on this background (13:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#282851 · ΔE 4.2
Deuteranopia
#27264f · ΔE 4.8
Tritanopia
#224a49 · ΔE 23.7
Achromatopsia
#313131 · ΔE 17.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #212f59;
bg-[#212f59]
Related colors
Frequently asked questions
#212f59 (#212f59) is rgb(33, 47, 89) in RGB.
No, #212f59 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 #212f59, or check how it holds up for accessibility.