Skip to content
Vectorlight.net

#338aea

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

HEX
#338aea
RGB
51, 138, 234
HSL
211.48°, 81.33%, 55.88%
OKLCH
0.63 0.17 253.8
Names
—
Lists

Codes

FormatValue
HEX#338aea
RGBrgb(51 138 234)
HSLhsl(211.48 81.33% 55.88%)
OKLCHoklch(0.63 0.17 253.8)
CMYKcmyk(78.21% 41.03% 0% 8.24%)
Android#ff338aea

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.52:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.96:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#338aea"
Gradient stop
<stop stop-color="#338aea"/>
CSS variable + fill
:root { --c: #338aea; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #338aea;
background-color: #338aea;
bg-[#338aea]