Skip to content
Vectorlight.net

#40638e

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

HEX
#40638e
RGB
64, 99, 142
HSL
213.08°, 37.86%, 40.39%
OKLCH
0.49 0.08 254.24
Names
—
Lists

Codes

FormatValue
HEX#40638e
RGBrgb(64 99 142)
HSLhsl(213.08 37.86% 40.39%)
OKLCHoklch(0.49 0.08 254.24)
CMYKcmyk(54.93% 30.28% 0% 44.31%)
Android#ff40638e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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