#024abc
a dark, electric blue · cool · closest name: royalblue
RGB
2, 74, 188
HSL
217°, 98%, 37%
CMYK
99, 61, 0, 26
Luminance
0.0854
Every format
| HEX | #024abc |
| RGB | rgb(2, 74, 188) |
| HSL | hsl(217, 98%, 37%) |
| CMYK | cmyk(99%, 61%, 0%, 26%) |
| LAB | lab(35.1 27.5 -64.8) |
| LCH | lch(35.1 70.4 293.0) |
| OKLCH | oklch(0.450 0.190 260.8) |
Copy-ready code
/* CSS */
color: #024abc;
background-color: #024abc;
/* Tailwind (arbitrary) */
class="text-[#024abc] bg-[#024abc]"
/* SCSS */
$brand: #024abc;
/* SwiftUI */
Color(red: 0.008, green: 0.290, blue: 0.737)
/* Android */
Color.parseColor("#024abc")Accessibility — WCAG contrast
Aa
#024abc on white: 7.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#024abc on black: 2.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.8%
Green29.0%
Blue73.7%
CMYK percentages
Cyan98.9%
Magenta60.6%
Yellow0.0%
Key (black)26.3%
Color previews
#024abc text on a black background
contrast 2.71:1
Card sample
#024abc text on a white background
contrast 7.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #024abc;
Background color
Panel with #024abc background
background-color: #024abc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #024abc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(2, 74, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 74, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024abc; background: linear-gradient(135deg, #024abc, #3602BC);