Skip to content
Vectorlight.net

#331bbe

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

HEX
#331bbe
RGB
51, 27, 190
HSL
248.83°, 75.12%, 42.55%
OKLCH
0.4 0.23 275.14
Names
—
Lists

Codes

FormatValue
HEX#331bbe
RGBrgb(51 27 190)
HSLhsl(248.83 75.12% 42.55%)
OKLCHoklch(0.4 0.23 275.14)
CMYKcmyk(73.16% 85.79% 0% 25.49%)
Android#ff331bbe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #331bbe;
background-color: #331bbe;
bg-[#331bbe]