Color #212842
A muted very dark blue.
Conversions
#212842
rgb(33, 40, 66)
hsl(227.3, 33.3%, 19.4%)
hsv(227.3, 50%, 25.9%)
cmyk(50%, 39.4%, 0%, 74.1%)
lab(16.67, 5.23, -17.42)
lch(16.67, 18.19, 286.71)
oklch(28.3%, 0.0489, 271.52)
hwb(227.3, 12.9%, 74.1%)
Harmony colors
Accessibility
White text reads better on this background (14.51:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#24243d · ΔE 3
Deuteranopia
#24233c · ΔE 3.5
Tritanopia
#213837 · ΔE 18.8
Achromatopsia
#292929 · ΔE 13.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #212842;
bg-[#212842]
Related colors
Frequently asked questions
#212842 (#212842) is rgb(33, 40, 66) in RGB.
No, #212842 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 #212842, or check how it holds up for accessibility.