Color #2a5180
A moderately saturated dark blue.
Conversions
#2a5180
rgb(42, 81, 128)
hsl(212.8, 50.6%, 33.3%)
hsv(212.8, 67.2%, 50.2%)
cmyk(67.2%, 36.7%, 0%, 49.8%)
lab(33.85, 2.35, -30.59)
lch(33.85, 30.68, 274.39)
oklch(43%, 0.0902, 254.3)
hwb(212.8, 16.5%, 49.8%)
Harmony colors
Accessibility
White text reads better on this background (8.12:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#3e3f77 · ΔE 10
Deuteranopia
#3c3974 · ΔE 11.5
Tritanopia
#2d6f6d · ΔE 23.2
Achromatopsia
#505050 · ΔE 18.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a5180;
bg-[#2a5180]
Related colors
Frequently asked questions
#2a5180 (#2a5180) is rgb(42, 81, 128) in RGB.
No, #2a5180 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 #2a5180, or check how it holds up for accessibility.