Skip to content
Vectorlight.net

#402bdc

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

HEX
#402bdc
RGB
64, 43, 220
HSL
247.12°, 71.66%, 51.57%
OKLCH
0.46 0.25 275.66
Names
—
Lists

Codes

FormatValue
HEX#402bdc
RGBrgb(64 43 220)
HSLhsl(247.12 71.66% 51.57%)
OKLCHoklch(0.46 0.25 275.66)
CMYKcmyk(70.91% 80.45% 0% 13.73%)
Android#ff402bdc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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