Color #3a5798
A moderately saturated medium blue.
Conversions
#3a5798
rgb(58, 87, 152)
hsl(221.5, 44.8%, 41.2%)
hsv(221.5, 61.8%, 59.6%)
cmyk(61.8%, 42.8%, 0%, 40.4%)
lab(37.81, 10.38, -38.88)
lch(37.81, 40.24, 284.95)
oklch(46.7%, 0.1112, 264.43)
hwb(221.5, 22.7%, 40.4%)
Harmony colors
Accessibility
White text reads better on this background (7.01:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#48498c · ΔE 7.1
Deuteranopia
#474489 · ΔE 8.6
Tritanopia
#3c817e · ΔE 28.2
Achromatopsia
#595959 · ΔE 21.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #3a5798;
bg-[#3a5798]
Related colors
Frequently asked questions
#3a5798 (#3a5798) is rgb(58, 87, 152) in RGB.
No, #3a5798 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 #3a5798, or check how it holds up for accessibility.