Skip to content
Vectorlight.net

#42399e

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

HEX
#42399e
RGB
66, 57, 158
HSL
245.35°, 46.98%, 42.16%
OKLCH
0.42 0.16 281.11
Names
—
Lists

Codes

FormatValue
HEX#42399e
RGBrgb(66 57 158)
HSLhsl(245.35 46.98% 42.16%)
OKLCHoklch(0.42 0.16 281.11)
CMYKcmyk(58.23% 63.92% 0% 38.04%)
Android#ff42399e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #42399e;
background-color: #42399e;
bg-[#42399e]