Color #212851
A moderately saturated dark blue.
Conversions
#212851
rgb(33, 40, 81)
hsl(231.3, 42.1%, 22.4%)
hsv(231.3, 59.3%, 31.8%)
cmyk(59.3%, 50.6%, 0%, 68.2%)
lab(17.62, 10.79, -26.15)
lch(17.62, 28.29, 292.42)
oklch(29.4%, 0.0746, 273.61)
hwb(231.3, 12.9%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (14.12:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#242449 · ΔE 2.6
Deuteranopia
#242348 · ΔE 3
Tritanopia
#214341 · ΔE 24.4
Achromatopsia
#2b2b2b · ΔE 18
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #212851;
bg-[#212851]
Related colors
Frequently asked questions
#212851 (#212851) is rgb(33, 40, 81) in RGB.
No, #212851 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 #212851, or check how it holds up for accessibility.