Skip to content
Vectorlight.net

#400ddc

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

HEX
#400ddc
RGB
64, 13, 220
HSL
254.78°, 88.84%, 45.69%
OKLCH
0.44 0.26 276.89
Names
—
Lists

Codes

FormatValue
HEX#400ddc
RGBrgb(64 13 220)
HSLhsl(254.78 88.84% 45.69%)
OKLCHoklch(0.44 0.26 276.89)
CMYKcmyk(70.91% 94.09% 0% 13.73%)
Android#ff400ddc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #400ddc;
background-color: #400ddc;
bg-[#400ddc]