Skip to content
Vectorlight.net

#31203e

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

HEX
#31203e
RGB
49, 32, 62
HSL
274°, 31.91%, 18.43%
OKLCH
0.28 0.06 309.19
Names
—
Lists

Codes

FormatValue
HEX#31203e
RGBrgb(49 32 62)
HSLhsl(274 31.91% 18.43%)
OKLCHoklch(0.28 0.06 309.19)
CMYKcmyk(20.97% 48.39% 0% 75.69%)
Android#ff31203e

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
14.92:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.40: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="#31203e"
Gradient stop
<stop stop-color="#31203e"/>
CSS variable + fill
:root { --c: #31203e; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #31203e;
background-color: #31203e;
bg-[#31203e]