Skip to content
Vectorlight.net

#31077a

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

HEX
#31077a
RGB
49, 7, 122
HSL
261.91°, 89.15%, 25.29%
OKLCH
0.3 0.17 287.59
Names
—
Lists

Codes

FormatValue
HEX#31077a
RGBrgb(49 7 122)
HSLhsl(261.91 89.15% 25.29%)
OKLCHoklch(0.3 0.17 287.59)
CMYKcmyk(59.84% 94.26% 0% 52.16%)
Android#ff31077a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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