Skip to content
Vectorlight.net

#335ec1

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

HEX
#335ec1
RGB
51, 94, 193
HSL
221.83°, 58.2%, 47.84%
OKLCH
0.51 0.16 263.87
Names
—
Lists

Codes

FormatValue
HEX#335ec1
RGBrgb(51 94 193)
HSLhsl(221.83 58.2% 47.84%)
OKLCHoklch(0.51 0.16 263.87)
CMYKcmyk(73.58% 51.3% 0% 24.31%)
Android#ff335ec1

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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