Skip to content
Vectorlight.net

#301548

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

HEX
#301548
RGB
48, 21, 72
HSL
271.76°, 54.84%, 18.24%
OKLCH
0.26 0.09 305.28
Names
—
Lists

Codes

FormatValue
HEX#301548
RGBrgb(48 21 72)
HSLhsl(271.76 54.84% 18.24%)
OKLCHoklch(0.26 0.09 305.28)
CMYKcmyk(33.33% 70.83% 0% 71.76%)
Android#ff301548

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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