Skip to content
Vectorlight.net

#31124a

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

HEX
#31124a
RGB
49, 18, 74
HSL
273.21°, 60.87%, 18.04%
OKLCH
0.26 0.1 305.97
Names
—
Lists

Codes

FormatValue
HEX#31124a
RGBrgb(49 18 74)
HSLhsl(273.21 60.87% 18.04%)
OKLCHoklch(0.26 0.1 305.97)
CMYKcmyk(33.78% 75.68% 0% 70.98%)
Android#ff31124a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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