Skip to content
Vectorlight.net

#406fab

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

HEX
#406fab
RGB
64, 111, 171
HSL
213.64°, 45.53%, 46.08%
OKLCH
0.54 0.11 255.31
Names
—
Lists

Codes

FormatValue
HEX#406fab
RGBrgb(64 111 171)
HSLhsl(213.64 45.53% 46.08%)
OKLCHoklch(0.54 0.11 255.31)
CMYKcmyk(62.57% 35.09% 0% 32.94%)
Android#ff406fab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #406fab;
background-color: #406fab;
bg-[#406fab]