Color #152840
A moderately saturated very dark blue.
Conversions
#152840
rgb(21, 40, 64)
hsl(213.5, 50.6%, 16.7%)
hsv(213.5, 67.2%, 25.1%)
cmyk(67.2%, 37.5%, 0%, 74.9%)
lab(15.73, 1.1, -17.57)
lch(15.73, 17.6, 273.58)
oklch(27.4%, 0.0514, 254.99)
hwb(213.5, 8.2%, 74.9%)
Harmony colors
Accessibility
White text reads better on this background (14.9:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1f1f3b · ΔE 8.3
Deuteranopia
#1e1c3a · ΔE 9.4
Tritanopia
#163736 · ΔE 17.2
Achromatopsia
#272727 · ΔE 12.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #152840;
bg-[#152840]
Related colors
Frequently asked questions
#152840 (#152840) is rgb(21, 40, 64) in RGB.
No, #152840 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 #152840, or check how it holds up for accessibility.