Skip to content
Vectorlight.net

#335eea

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

HEX
#335eea
RGB
51, 94, 234
HSL
225.9°, 81.33%, 55.88%
OKLCH
0.54 0.22 266.03
Names
—
Lists

Codes

FormatValue
HEX#335eea
RGBrgb(51 94 234)
HSLhsl(225.9 81.33% 55.88%)
OKLCHoklch(0.54 0.22 266.03)
CMYKcmyk(78.21% 59.83% 0% 8.24%)
Android#ff335eea

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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