Skip to content
Vectorlight.net

#31246c

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

HEX
#31246c
RGB
49, 36, 108
HSL
250.83°, 50%, 28.24%
OKLCH
0.32 0.12 285.84
Names
—
Lists

Codes

FormatValue
HEX#31246c
RGBrgb(49 36 108)
HSLhsl(250.83 50% 28.24%)
OKLCHoklch(0.32 0.12 285.84)
CMYKcmyk(54.63% 66.67% 0% 57.65%)
Android#ff31246c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #31246c;
background-color: #31246c;
bg-[#31246c]