Skip to content

#40affc

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

RGB
64, 175, 252
HSL
205°, 97%, 62%
CMYK
75, 31, 0, 1
Luminance
0.3878

Every format

HEX#40affc
RGBrgb(64, 175, 252)
HSLhsl(205, 97%, 62%)
CMYKcmyk(75%, 31%, 0%, 1%)
LABlab(68.6 -6.2 -47.1)
LCHlch(68.6 47.5 262.5)
OKLCHoklch(0.726 0.149 243.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40affc on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#40affc on black: 8.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green68.6%
Blue98.8%

CMYK percentages

Cyan74.6%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#40affc text on a black background

contrast 8.76:1

Card sample

#40affc text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40affc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40affc in the Color Lab