Skip to content
Vectorlight.net

#312966

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

HEX
#312966
RGB
49, 41, 102
HSL
247.87°, 42.66%, 28.04%
OKLCH
0.33 0.1 285.11
Names
—
Lists

Codes

FormatValue
HEX#312966
RGBrgb(49 41 102)
HSLhsl(247.87 42.66% 28.04%)
OKLCHoklch(0.33 0.1 285.11)
CMYKcmyk(51.96% 59.8% 0% 60%)
Android#ff312966

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #312966;
background-color: #312966;
bg-[#312966]