#508cf2
a balanced, electric blue · cool · closest name: dodgerblue
RGB
80, 140, 242
HSL
218°, 86%, 63%
CMYK
67, 42, 0, 5
Luminance
0.2687
Every format
| HEX | #508cf2 |
| RGB | rgb(80, 140, 242) |
| HSL | hsl(218, 86%, 63%) |
| CMYK | cmyk(67%, 42%, 0%, 5%) |
| LAB | lab(58.9 12.8 -57.0) |
| LCH | lch(58.9 58.4 282.7) |
| OKLCH | oklch(0.649 0.165 260.3) |
Copy-ready code
/* CSS */
color: #508cf2;
background-color: #508cf2;
/* Tailwind (arbitrary) */
class="text-[#508cf2] bg-[#508cf2]"
/* SCSS */
$brand: #508cf2;
/* SwiftUI */
Color(red: 0.314, green: 0.549, blue: 0.949)
/* Android */
Color.parseColor("#508cf2")Accessibility — WCAG contrast
Aa
#508cf2 on white: 3.29:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#508cf2 on black: 6.37:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.4%
Green54.9%
Blue94.9%
CMYK percentages
Cyan66.9%
Magenta42.1%
Yellow0.0%
Key (black)5.1%
Color previews
#508cf2 text on a black background
contrast 6.37:1
Card sample
#508cf2 text on a white background
contrast 3.29:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #508cf2;
Background color
Panel with #508cf2 background
background-color: #508cf2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #508cf2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(80, 140, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 140, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #508cf2; background: linear-gradient(135deg, #508cf2, #8050F2);