Skip to content
Vectorlight.net

#335baa

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

HEX
#335baa
RGB
51, 91, 170
HSL
219.83°, 53.85%, 43.33%
OKLCH
0.48 0.13 262.35
Names
—
Lists

Codes

FormatValue
HEX#335baa
RGBrgb(51 91 170)
HSLhsl(219.83 53.85% 43.33%)
OKLCHoklch(0.48 0.13 262.35)
CMYKcmyk(70% 46.47% 0% 33.33%)
Android#ff335baa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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