Skip to content
Vectorlight.net

#42408f

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

HEX
#42408f
RGB
66, 64, 143
HSL
241.52°, 38.16%, 40.59%
OKLCH
0.42 0.13 280.51
Names
—
Lists

Codes

FormatValue
HEX#42408f
RGBrgb(66 64 143)
HSLhsl(241.52 38.16% 40.59%)
OKLCHoklch(0.42 0.13 280.51)
CMYKcmyk(53.85% 55.24% 0% 43.92%)
Android#ff42408f

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #42408f;
background-color: #42408f;
bg-[#42408f]