#021cff
a balanced, electric blue · warm · closest name: blue
RGB
2, 28, 255
HSL
234°, 100%, 50%
CMYK
99, 89, 0, 0
Luminance
0.0806
Every format
| HEX | #021cff |
| RGB | rgb(2, 28, 255) |
| HSL | hsl(234, 100%, 50%) |
| CMYK | cmyk(99%, 89%, 0%, 0%) |
| LAB | lab(34.1 73.7 -104.8) |
| LCH | lch(34.1 128.1 305.1) |
| OKLCH | oklch(0.464 0.305 264.3) |
Copy-ready code
/* CSS */
color: #021cff;
background-color: #021cff;
/* Tailwind (arbitrary) */
class="text-[#021cff] bg-[#021cff]"
/* SCSS */
$brand: #021cff;
/* SwiftUI */
Color(red: 0.008, green: 0.110, blue: 1.000)
/* Android */
Color.parseColor("#021cff")Accessibility — WCAG contrast
Aa
#021cff on white: 8.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#021cff on black: 2.61:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green11.0%
Blue100.0%
CMYK percentages
Cyan99.2%
Magenta89.0%
Yellow0.0%
Key (black)0.0%
Color previews
#021cff text on a black background
contrast 2.61:1
Card sample
#021cff text on a white background
contrast 8.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #021cff;
Background color
Panel with #021cff background
background-color: #021cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #021cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 28, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 28, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #021cff; background: linear-gradient(135deg, #021cff, #9102FF);