Skip to content
Vectorlight.net

#02166d

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

HEX
#02166d
RGB
2, 22, 109
HSL
228.79°, 96.4%, 21.76%
OKLCH
0.27 0.15 264.47
Names
—
Lists

Codes

FormatValue
HEX#02166d
RGBrgb(2 22 109)
HSLhsl(228.79 96.4% 21.76%)
OKLCHoklch(0.27 0.15 264.47)
CMYKcmyk(98.17% 79.82% 0% 57.25%)
Android#ff02166d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #02166d;
background-color: #02166d;
bg-[#02166d]