Skip to content
Vectorlight.net

#335faf

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

HEX
#335faf
RGB
51, 95, 175
HSL
218.71°, 54.87%, 44.31%
OKLCH
0.5 0.14 261.24
Names
—
Lists

Codes

FormatValue
HEX#335faf
RGBrgb(51 95 175)
HSLhsl(218.71 54.87% 44.31%)
OKLCHoklch(0.5 0.14 261.24)
CMYKcmyk(70.86% 45.71% 0% 31.37%)
Android#ff335faf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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