Skip to content
Kolorvia
#3a5798

Color #3a5798

A moderately saturated medium blue.

Conversions

HEX
#3a5798
RGB
rgb(58, 87, 152)
HSL
hsl(221.5, 44.8%, 41.2%)
HSV / HSB
hsv(221.5, 61.8%, 59.6%)
CMYK
cmyk(61.8%, 42.8%, 0%, 40.4%)
LAB
lab(37.81, 10.38, -38.88)
LCH
lch(37.81, 40.24, 284.95)
OKLCH
oklch(46.7%, 0.1112, 264.43)
HWB
hwb(221.5, 22.7%, 40.4%)

Harmony colors

Complementary

#987b3a

Analogous

#3a8698
#3a5798
#4c3a98

Triadic

#3a5798
#983a57
#57983a

Split-complementary

#3a5798
#984c3a
#86983a

Tetradic

#3a5798
#7b3a98
#987b3a
#57983a

Square

#3a5798
#983a86
#987b3a
#3a984c

Shades

Color #3a5798 mixed toward black.

#30497f
#273a65
#1d2c4c
#131d33
#0a0f19

Tints

Color #3a5798 mixed toward white.

#4a6dba
#6e8ac8
#92a7d6
#b7c4e3
#dbe2f1

Tones

Color #3a5798 mixed toward gray.

#425a90
#4a5d88
#526081
#596379
#616671

Accessibility

Aa White text on this color
7.01:1
Aa Black text on this color
3:1

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

CSS
background-color: #3a5798;
Tailwind (arbitrary value)
bg-[#3a5798]

Related colors

Cornflower Blue #6495ed
Royal Blue #4169e1
Light Steel Blue #b0c4de
Light Slate Gray #778899
Slate Gray #708090
Dodger Blue #1e90ff

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

Build something with this color

Generate a full palette from #3a5798, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.