Skip to content
Vectorlight.net

#021997

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

HEX
#021997
RGB
2, 25, 151
HSL
230.74°, 97.39%, 30%
OKLCH
0.33 0.2 264.5
Names
—
Lists

Codes

FormatValue
HEX#021997
RGBrgb(2 25 151)
HSLhsl(230.74 97.39% 30%)
OKLCHoklch(0.33 0.2 264.5)
CMYKcmyk(98.68% 83.44% 0% 40.78%)
Android#ff021997

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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