Skip to content

#40afee

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

RGB
64, 175, 238
HSL
202°, 84%, 59%
CMYK
73, 27, 0, 7
Luminance
0.3792

Every format

HEX#40afee
RGBrgb(64, 175, 238)
HSLhsl(202, 84%, 59%)
CMYKcmyk(73%, 27%, 0%, 7%)
LABlab(68.0 -10.9 -40.4)
LCHlch(68.0 41.9 254.9)
OKLCHoklch(0.719 0.135 238.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40afee on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#40afee on black: 8.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green68.6%
Blue93.3%

CMYK percentages

Cyan73.1%
Magenta26.5%
Yellow0.0%
Key (black)6.7%

Color previews

#40afee text on a black background

contrast 8.58:1

Card sample

#40afee text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 175, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 175, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40afee;
background: linear-gradient(135deg, #40afee, #4540EE);

Monochromatic scale

Palettes built from #40afee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40afee in the Color Lab