Skip to content
Vectorlight.net

#31129d

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

HEX
#31129d
RGB
49, 18, 157
HSL
253.38°, 79.43%, 34.31%
OKLCH
0.35 0.2 279.11
Names
—
Lists

Codes

FormatValue
HEX#31129d
RGBrgb(49 18 157)
HSLhsl(253.38 79.43% 34.31%)
OKLCHoklch(0.35 0.2 279.11)
CMYKcmyk(68.79% 88.54% 0% 38.43%)
Android#ff31129d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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