Skip to content
Vectorlight.net

#222f9d

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

HEX
#222f9d
RGB
34, 47, 157
HSL
233.66°, 64.4%, 37.45%
OKLCH
0.38 0.18 269.81
Names
—
Lists

Codes

FormatValue
HEX#222f9d
RGBrgb(34 47 157)
HSLhsl(233.66 64.4% 37.45%)
OKLCHoklch(0.38 0.18 269.81)
CMYKcmyk(78.34% 70.06% 0% 38.43%)
Android#ff222f9d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #222f9d;
background-color: #222f9d;
bg-[#222f9d]