Skip to content
Vectorlight.net

#1851ec

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

HEX
#1851ec
RGB
24, 81, 236
HSL
223.87°, 84.8%, 50.98%
OKLCH
0.51 0.24 263.97
Names
—
Lists

Codes

FormatValue
HEX#1851ec
RGBrgb(24 81 236)
HSLhsl(223.87 84.8% 50.98%)
OKLCHoklch(0.51 0.24 263.97)
CMYKcmyk(89.83% 65.68% 0% 7.45%)
Android#ff1851ec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #1851ec;
background-color: #1851ec;
bg-[#1851ec]