Skip to content
Vectorlight.net

#02124d

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

HEX
#02124d
RGB
2, 18, 77
HSL
227.2°, 94.94%, 15.49%
OKLCH
0.22 0.11 264.23
Names
—
Lists

Codes

FormatValue
HEX#02124d
RGBrgb(2 18 77)
HSLhsl(227.2 94.94% 15.49%)
OKLCHoklch(0.22 0.11 264.23)
CMYKcmyk(97.4% 76.62% 0% 69.8%)
Android#ff02124d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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