Skip to content

#40ace2

a balanced, vivid blue · cool · closest name: steelblue

RGB
64, 172, 226
HSL
200°, 74%, 57%
CMYK
72, 24, 0, 11
Luminance
0.3609

Every format

HEX#40ace2
RGBrgb(64, 172, 226)
HSLhsl(200, 74%, 57%)
CMYKcmyk(72%, 24%, 0%, 11%)
LABlab(66.6 -13.3 -36.0)
LCHlch(66.6 38.4 249.7)
OKLCHoklch(0.706 0.125 234.5)

Copy-ready code

/* CSS */
color: #40ace2;
background-color: #40ace2;
/* Tailwind (arbitrary) */
class="text-[#40ace2] bg-[#40ace2]"
/* SCSS */
$brand: #40ace2;
/* SwiftUI */
Color(red: 0.251, green: 0.675, blue: 0.886)
/* Android */
Color.parseColor("#40ace2")

Accessibility — WCAG contrast

Aa
#40ace2 on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#40ace2 on black: 8.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green67.5%
Blue88.6%

CMYK percentages

Cyan71.7%
Magenta23.9%
Yellow0.0%
Key (black)11.4%

Color previews

#40ace2 text on a black background

contrast 8.22:1

Card sample

#40ace2 text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40ace2;
Background color
Panel with #40ace2 background
background-color: #40ace2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #40ace2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(64, 172, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 172, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40ace2;
background: linear-gradient(135deg, #40ace2, #4040E2);

Monochromatic scale

Palettes built from #40ace2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40ace2 in the Color Lab