Skip to content
Vectorlight.net

#21054b

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

HEX
#21054b
RGB
33, 5, 75
HSL
264°, 87.5%, 15.69%
OKLCH
0.23 0.11 292.72
Names
—
Lists

Codes

FormatValue
HEX#21054b
RGBrgb(33 5 75)
HSLhsl(264 87.5% 15.69%)
OKLCHoklch(0.23 0.11 292.72)
CMYKcmyk(56% 93.33% 0% 70.59%)
Android#ff21054b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #21054b;
background-color: #21054b;
bg-[#21054b]