Skip to content
Vectorlight.net

#181f4c

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

HEX
#181f4c
RGB
24, 31, 76
HSL
231.92°, 52%, 19.61%
OKLCH
0.26 0.08 272.68
Names
—
Lists

Codes

FormatValue
HEX#181f4c
RGBrgb(24 31 76)
HSLhsl(231.92 52% 19.61%)
OKLCHoklch(0.26 0.08 272.68)
CMYKcmyk(68.42% 59.21% 0% 70.2%)
Android#ff181f4c

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
15.68: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="#181f4c"
Gradient stop
<stop stop-color="#181f4c"/>
CSS variable + fill
:root { --c: #181f4c; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #181f4c;
background-color: #181f4c;
bg-[#181f4c]