#508af6
a balanced, electric blue · cool · closest name: dodgerblue
RGB
80, 138, 246
HSL
219°, 90%, 64%
CMYK
68, 44, 0, 4
Luminance
0.2654
Every format
| HEX | #508af6 |
| RGB | rgb(80, 138, 246) |
| HSL | hsl(219, 90%, 64%) |
| CMYK | cmyk(68%, 44%, 0%, 4%) |
| LAB | lab(58.5 15.4 -59.7) |
| LCH | lch(58.5 61.7 284.5) |
| OKLCH | oklch(0.648 0.173 261.6) |
Copy-ready code
/* CSS */
color: #508af6;
background-color: #508af6;
/* Tailwind (arbitrary) */
class="text-[#508af6] bg-[#508af6]"
/* SCSS */
$brand: #508af6;
/* SwiftUI */
Color(red: 0.314, green: 0.541, blue: 0.965)
/* Android */
Color.parseColor("#508af6")Accessibility — WCAG contrast
Aa
#508af6 on white: 3.33:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#508af6 on black: 6.31:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green54.1%
Blue96.5%
CMYK percentages
Cyan67.5%
Magenta43.9%
Yellow0.0%
Key (black)3.5%
Color previews
#508af6 text on a black background
contrast 6.31:1
Card sample
#508af6 text on a white background
contrast 3.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #508af6;
Background color
Panel with #508af6 background
background-color: #508af6;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #508af6;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 138, 246, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 138, 246, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508af6; background: linear-gradient(135deg, #508af6, #8450F6);