Skip to content
Vectorlight.net

#306aec

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

HEX
#306aec
RGB
48, 106, 236
HSL
221.49°, 83.19%, 55.69%
OKLCH
0.56 0.21 263.22
Names
—
Lists

Codes

FormatValue
HEX#306aec
RGBrgb(48 106 236)
HSLhsl(221.49 83.19% 55.69%)
OKLCHoklch(0.56 0.21 263.22)
CMYKcmyk(79.66% 55.08% 0% 7.45%)
Android#ff306aec

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #306aec;
background-color: #306aec;
bg-[#306aec]