Skip to content
Vectorlight.net

#40367d

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

HEX
#40367d
RGB
64, 54, 125
HSL
248.45°, 39.66%, 35.1%
OKLCH
0.38 0.12 286
Names
—
Lists

Codes

FormatValue
HEX#40367d
RGBrgb(64 54 125)
HSLhsl(248.45 39.66% 35.1%)
OKLCHoklch(0.38 0.12 286)
CMYKcmyk(48.8% 56.8% 0% 50.98%)
Android#ff40367d

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #40367d;
background-color: #40367d;
bg-[#40367d]