Skip to content
Vectorlight.net

#402e69

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

HEX
#402e69
RGB
64, 46, 105
HSL
258.31°, 39.07%, 29.61%
OKLCH
0.35 0.1 294.88
Names
—
Lists

Codes

FormatValue
HEX#402e69
RGBrgb(64 46 105)
HSLhsl(258.31 39.07% 29.61%)
OKLCHoklch(0.35 0.1 294.88)
CMYKcmyk(39.05% 56.19% 0% 58.82%)
Android#ff402e69

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #402e69;
background-color: #402e69;
bg-[#402e69]