Skip to content
Vectorlight.net

#335eab

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

HEX
#335eab
RGB
51, 94, 171
HSL
218.5°, 54.05%, 43.53%
OKLCH
0.49 0.13 261.05
Names
—
Lists

Codes

FormatValue
HEX#335eab
RGBrgb(51 94 171)
HSLhsl(218.5 54.05% 43.53%)
OKLCHoklch(0.49 0.13 261.05)
CMYKcmyk(70.18% 45.03% 0% 32.94%)
Android#ff335eab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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