Skip to content
Vectorlight.net

#40354e

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

HEX
#40354e
RGB
64, 53, 78
HSL
266.4°, 19.08%, 25.69%
OKLCH
0.35 0.04 304.32
Names
—
Lists

Codes

FormatValue
HEX#40354e
RGBrgb(64 53 78)
HSLhsl(266.4 19.08% 25.69%)
OKLCHoklch(0.35 0.04 304.32)
CMYKcmyk(17.95% 32.05% 0% 69.41%)
Android#ff40354e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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