Skip to content

#40c2fb

a balanced, electric cyan · cool · closest name: skyblue

RGB
64, 194, 251
HSL
198°, 96%, 62%
CMYK
75, 23, 0, 2
Luminance
0.4664

Every format

HEX#40c2fb
RGBrgb(64, 194, 251)
HSLhsl(198, 96%, 62%)
CMYKcmyk(75%, 23%, 0%, 2%)
LABlab(74.0 -16.8 -38.1)
LCHlch(74.0 41.7 246.2)
OKLCHoklch(0.768 0.137 231.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40c2fb on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#40c2fb on black: 10.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green76.1%
Blue98.4%

CMYK percentages

Cyan74.5%
Magenta22.7%
Yellow0.0%
Key (black)1.6%

Color previews

#40c2fb text on a black background

contrast 10.33:1

Card sample

#40c2fb text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 194, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 194, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c2fb;
background: linear-gradient(135deg, #40c2fb, #4045FB);

Monochromatic scale

Palettes built from #40c2fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40c2fb in the Color Lab