Skip to content
Vectorlight.net

#42304e

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

HEX
#42304e
RGB
66, 48, 78
HSL
276°, 23.81%, 24.71%
OKLCH
0.34 0.06 311.11
Names
—
Lists

Codes

FormatValue
HEX#42304e
RGBrgb(66 48 78)
HSLhsl(276 23.81% 24.71%)
OKLCHoklch(0.34 0.06 311.11)
CMYKcmyk(15.38% 38.46% 0% 69.41%)
Android#ff42304e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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