Skip to content

#40baf0

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

RGB
64, 186, 240
HSL
198°, 85%, 60%
CMYK
73, 23, 0, 6
Luminance
0.4250

Every format

HEX#40baf0
RGBrgb(64, 186, 240)
HSLhsl(198, 85%, 60%)
CMYKcmyk(73%, 23%, 0%, 6%)
LABlab(71.2 -16.2 -36.5)
LCHlch(71.2 39.9 246.1)
OKLCHoklch(0.745 0.131 231.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40baf0 on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#40baf0 on black: 9.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green72.9%
Blue94.1%

CMYK percentages

Cyan73.3%
Magenta22.5%
Yellow0.0%
Key (black)5.9%

Color previews

#40baf0 text on a black background

contrast 9.50:1

Card sample

#40baf0 text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40baf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40baf0 in the Color Lab