Color #121828
A muted very dark blue.
Conversions
#121828
rgb(18, 24, 40)
hsl(223.6, 37.9%, 11.4%)
hsv(223.6, 55%, 15.7%)
cmyk(55%, 40%, 0%, 84.3%)
lab(8.44, 2.71, -11.81)
lch(8.44, 12.12, 282.92)
oklch(21.2%, 0.0331, 267.92)
hwb(223.6, 7.1%, 84.3%)
Harmony colors
Accessibility
White text reads better on this background (17.69:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#151525 · ΔE 3.1
Deuteranopia
#141424 · ΔE 3.1
Tritanopia
#122221 · ΔE 14.1
Achromatopsia
#181818 · ΔE 9.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #121828;
bg-[#121828]
Related colors
Frequently asked questions
#121828 (#121828) is rgb(18, 24, 40) in RGB.
No, #121828 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 #121828, or check how it holds up for accessibility.