Skip to content
Vectorlight.net

#1502ba

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

HEX
#1502ba
RGB
21, 2, 186
HSL
246.2°, 97.87%, 36.86%
OKLCH
0.36 0.24 267.25
Names
—
Lists

Codes

FormatValue
HEX#1502ba
RGBrgb(21 2 186)
HSLhsl(246.2 97.87% 36.86%)
OKLCHoklch(0.36 0.24 267.25)
CMYKcmyk(88.71% 98.92% 0% 27.06%)
Android#ff1502ba

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #1502ba;
background-color: #1502ba;
bg-[#1502ba]