Skip to content
Vectorlight.net

#172a8f

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

HEX
#172a8f
RGB
23, 42, 143
HSL
230.5°, 72.29%, 32.55%
OKLCH
0.35 0.17 267.53
Names
—
Lists

Codes

FormatValue
HEX#172a8f
RGBrgb(23 42 143)
HSLhsl(230.5 72.29% 32.55%)
OKLCHoklch(0.35 0.17 267.53)
CMYKcmyk(83.92% 70.63% 0% 43.92%)
Android#ff172a8f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #172a8f;
background-color: #172a8f;
bg-[#172a8f]