Color #152b78
A vivid, highly saturated dark blue.
Conversions
#152b78
rgb(21, 43, 120)
hsl(226.7, 70.2%, 27.6%)
hsv(226.7, 82.5%, 47.1%)
cmyk(82.5%, 64.2%, 0%, 52.9%)
lab(20.99, 22.27, -46.29)
lch(20.99, 51.37, 295.69)
oklch(32.7%, 0.1342, 266.41)
hwb(226.7, 8.2%, 52.9%)
Harmony colors
Accessibility
White text reads better on this background (12.74:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#20216b · ΔE 4.1
Deuteranopia
#1f1d68 · ΔE 5.2
Tritanopia
#17605d · ΔE 31.6
Achromatopsia
#323232 · ΔE 24.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #152b78;
bg-[#152b78]
Related colors
Frequently asked questions
#152b78 (#152b78) is rgb(21, 43, 120) in RGB.
No, #152b78 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 #152b78, or check how it holds up for accessibility.