Skip to content
Vectorlight.net

#2c187a

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

HEX
#2c187a
RGB
44, 24, 122
HSL
252.24°, 67.12%, 28.63%
OKLCH
0.31 0.15 282.32
Names
—
Lists

Codes

FormatValue
HEX#2c187a
RGBrgb(44 24 122)
HSLhsl(252.24 67.12% 28.63%)
OKLCHoklch(0.31 0.15 282.32)
CMYKcmyk(63.93% 80.33% 0% 52.16%)
Android#ff2c187a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #2c187a;
background-color: #2c187a;
bg-[#2c187a]