Skip to content

#40b2f2

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

RGB
64, 178, 242
HSL
202°, 87%, 60%
CMYK
74, 26, 0, 5
Luminance
0.3934

Every format

HEX#40b2f2
RGBrgb(64, 178, 242)
HSLhsl(202, 87%, 60%)
CMYKcmyk(74%, 26%, 0%, 5%)
LABlab(69.0 -11.2 -41.0)
LCHlch(69.0 42.5 254.7)
OKLCHoklch(0.727 0.137 237.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red25.1%
Green69.8%
Blue94.9%

CMYK percentages

Cyan73.6%
Magenta26.4%
Yellow0.0%
Key (black)5.1%

Color previews

#40b2f2 text on a black background

contrast 8.87:1

Card sample

#40b2f2 text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40b2f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40b2f2 in the Color Lab