#020dfb
a balanced, electric blue · warm · closest name: blue
RGB
2, 13, 251
HSL
237°, 98%, 50%
CMYK
99, 95, 0, 2
Luminance
0.0727
Every format
| HEX | #020dfb |
| RGB | rgb(2, 13, 251) |
| HSL | hsl(237, 98%, 50%) |
| CMYK | cmyk(99%, 95%, 0%, 2%) |
| LAB | lab(32.4 76.2 -105.4) |
| LCH | lch(32.4 130.1 305.9) |
| OKLCH | oklch(0.451 0.306 264.3) |
Copy-ready code
/* CSS */
color: #020dfb;
background-color: #020dfb;
/* Tailwind (arbitrary) */
class="text-[#020dfb] bg-[#020dfb]"
/* SCSS */
$brand: #020dfb;
/* SwiftUI */
Color(red: 0.008, green: 0.051, blue: 0.984)
/* Android */
Color.parseColor("#020dfb")Accessibility — WCAG contrast
Aa
#020dfb on white: 8.56:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#020dfb on black: 2.45:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green5.1%
Blue98.4%
CMYK percentages
Cyan99.2%
Magenta94.8%
Yellow0.0%
Key (black)1.6%
Color previews
#020dfb text on a black background
contrast 2.45:1
Card sample
#020dfb text on a white background
contrast 8.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #020dfb;
Background color
Panel with #020dfb background
background-color: #020dfb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #020dfb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 13, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 13, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #020dfb; background: linear-gradient(135deg, #020dfb, #9D02FB);