#40afd2
a balanced, vivid cyan · cool · closest name: skyblue
RGB
64, 175, 210
HSL
194°, 62%, 54%
CMYK
70, 17, 0, 18
Luminance
0.3640
Every format
| HEX | #40afd2 |
| RGB | rgb(64, 175, 210) |
| HSL | hsl(194, 62%, 54%) |
| CMYK | cmyk(70%, 17%, 0%, 18%) |
| LAB | lab(66.8 -20.1 -26.9) |
| LCH | lch(66.8 33.5 233.2) |
| OKLCH | oklch(0.706 0.110 222.8) |
Copy-ready code
/* CSS */
color: #40afd2;
background-color: #40afd2;
/* Tailwind (arbitrary) */
class="text-[#40afd2] bg-[#40afd2]"
/* SCSS */
$brand: #40afd2;
/* SwiftUI */
Color(red: 0.251, green: 0.686, blue: 0.824)
/* Android */
Color.parseColor("#40afd2")Accessibility — WCAG contrast
Aa
#40afd2 on white: 2.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40afd2 on black: 8.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green68.6%
Blue82.4%
CMYK percentages
Cyan69.5%
Magenta16.7%
Yellow0.0%
Key (black)17.6%
Color previews
#40afd2 text on a black background
contrast 8.28:1
Card sample
#40afd2 text on a white background
contrast 2.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40afd2;
Background color
Panel with #40afd2 background
background-color: #40afd2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40afd2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 175, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 175, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40afd2; background: linear-gradient(135deg, #40afd2, #404DD2);