Skip to content
Vectorlight.net

#31246a

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

HEX
#31246a
RGB
49, 36, 106
HSL
251.14°, 49.3%, 27.84%
OKLCH
0.32 0.12 286.33
Names
—
Lists

Codes

FormatValue
HEX#31246a
RGBrgb(49 36 106)
HSLhsl(251.14 49.3% 27.84%)
OKLCHoklch(0.32 0.12 286.33)
CMYKcmyk(53.77% 66.04% 0% 58.43%)
Android#ff31246a

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
13.19: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="#31246a"
Gradient stop
<stop stop-color="#31246a"/>
CSS variable + fill
:root { --c: #31246a; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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