Skip to content
Vectorlight.net

#2873ce

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

HEX
#2873ce
RGB
40, 115, 206
HSL
212.89°, 67.48%, 48.24%
OKLCH
0.56 0.16 255.65
Names
—
Lists

Codes

FormatValue
HEX#2873ce
RGBrgb(40 115 206)
HSLhsl(212.89 67.48% 48.24%)
OKLCHoklch(0.56 0.16 255.65)
CMYKcmyk(80.58% 44.17% 0% 19.22%)
Android#ff2873ce

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #2873ce;
background-color: #2873ce;
bg-[#2873ce]