Skip to content
Vectorlight.net

#381f7d

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

HEX
#381f7d
RGB
56, 31, 125
HSL
255.96°, 60.26%, 30.59%
OKLCH
0.34 0.15 287.85
Names
—
Lists

Codes

FormatValue
HEX#381f7d
RGBrgb(56 31 125)
HSLhsl(255.96 60.26% 30.59%)
OKLCHoklch(0.34 0.15 287.85)
CMYKcmyk(55.2% 75.2% 0% 50.98%)
Android#ff381f7d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #381f7d;
background-color: #381f7d;
bg-[#381f7d]