Skip to content
Vectorlight.net

#31335a

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

HEX
#31335a
RGB
49, 51, 90
HSL
237.07°, 29.5%, 27.25%
OKLCH
0.34 0.07 279.89
Names
—
Lists

Codes

FormatValue
HEX#31335a
RGBrgb(49 51 90)
HSLhsl(237.07 29.5% 27.25%)
OKLCHoklch(0.34 0.07 279.89)
CMYKcmyk(45.56% 43.33% 0% 64.71%)
Android#ff31335a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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