Skip to content
Vectorlight.net

#31177d

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

HEX
#31177d
RGB
49, 23, 125
HSL
255.29°, 68.92%, 29.02%
OKLCH
0.32 0.16 284.92
Names
—
Lists

Codes

FormatValue
HEX#31177d
RGBrgb(49 23 125)
HSLhsl(255.29 68.92% 29.02%)
OKLCHoklch(0.32 0.16 284.92)
CMYKcmyk(60.8% 81.6% 0% 50.98%)
Android#ff31177d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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