Skip to content
Vectorlight.net

#40a1fc

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

HEX
#40a1fc
RGB
64, 161, 252
HSL
209.04°, 96.91%, 61.96%
OKLCH
0.69 0.16 250.19
Names
—
Lists

Codes

FormatValue
HEX#40a1fc
RGBrgb(64 161 252)
HSLhsl(209.04 96.91% 61.96%)
OKLCHoklch(0.69 0.16 250.19)
CMYKcmyk(74.6% 36.11% 0% 1.18%)
Android#ff40a1fc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
2.71:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
7.72:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#40a1fc"
Gradient stop
<stop stop-color="#40a1fc"/>
CSS variable + fill
:root { --c: #40a1fc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #40a1fc;
background-color: #40a1fc;
bg-[#40a1fc]