Skip to content
Vectorlight.net

#305baa

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

HEX
#305baa
RGB
48, 91, 170
HSL
218.85°, 55.96%, 42.75%
OKLCH
0.48 0.14 261.36
Names
—
Lists

Codes

FormatValue
HEX#305baa
RGBrgb(48 91 170)
HSLhsl(218.85 55.96% 42.75%)
OKLCHoklch(0.48 0.14 261.36)
CMYKcmyk(71.76% 46.47% 0% 33.33%)
Android#ff305baa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #305baa;
background-color: #305baa;
bg-[#305baa]