Skip to content
Vectorlight.net

#304faa

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

HEX
#304faa
RGB
48, 79, 170
HSL
224.75°, 55.96%, 42.75%
OKLCH
0.46 0.15 266.31
Names
—
Lists

Codes

FormatValue
HEX#304faa
RGBrgb(48 79 170)
HSLhsl(224.75 55.96% 42.75%)
OKLCHoklch(0.46 0.15 266.31)
CMYKcmyk(71.76% 53.53% 0% 33.33%)
Android#ff304faa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #304faa;
background-color: #304faa;
bg-[#304faa]