Skip to content
Vectorlight.net

#31548d

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#31548d
RGB
49, 84, 141
HSL
217.17°, 48.42%, 37.25%
OKLCH
0.45 0.1 259.69
Names
—
Lists

Codes

FormatValue
HEX#31548d
RGBrgb(49 84 141)
HSLhsl(217.17 48.42% 37.25%)
OKLCHoklch(0.45 0.1 259.69)
CMYKcmyk(65.25% 40.43% 0% 44.71%)
Android#ff31548d

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
7.54:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.78:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#31548d"
Gradient stop
<stop stop-color="#31548d"/>
CSS variable + fill
:root { --c: #31548d; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #31548d;
background-color: #31548d;
bg-[#31548d]