Skip to content

#40b0fd

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

RGB
64, 176, 253
HSL
204°, 98%, 62%
CMYK
75, 30, 0, 1
Luminance
0.3923

Every format

HEX#40b0fd
RGBrgb(64, 176, 253)
HSLhsl(204, 98%, 62%)
CMYKcmyk(75%, 30%, 0%, 1%)
LABlab(68.9 -6.4 -47.1)
LCHlch(68.9 47.5 262.3)
OKLCHoklch(0.728 0.150 243.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40b0fd on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#40b0fd on black: 8.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green69.0%
Blue99.2%

CMYK percentages

Cyan74.7%
Magenta30.4%
Yellow0.0%
Key (black)0.8%

Color previews

#40b0fd text on a black background

contrast 8.85:1

Card sample

#40b0fd text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40b0fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40b0fd in the Color Lab