Skip to content
Vectorlight.net

#306fab

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

HEX
#306fab
RGB
48, 111, 171
HSL
209.27°, 56.16%, 42.94%
OKLCH
0.53 0.11 249.95
Names
—
Lists

Codes

FormatValue
HEX#306fab
RGBrgb(48 111 171)
HSLhsl(209.27 56.16% 42.94%)
OKLCHoklch(0.53 0.11 249.95)
CMYKcmyk(71.93% 35.09% 0% 32.94%)
Android#ff306fab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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