Skip to content
Vectorlight.net

#40302e

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

HEX
#40302e
RGB
64, 48, 46
HSL
6.67°, 16.36%, 21.57%
OKLCH
0.33 0.02 26.64
Names
—
Lists

Codes

FormatValue
HEX#40302e
RGBrgb(64 48 46)
HSLhsl(6.67 16.36% 21.57%)
OKLCHoklch(0.33 0.02 26.64)
CMYKcmyk(0% 25% 28.13% 74.9%)
Android#ff40302e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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