#2818ce
a balanced, electric blue · warm · closest name: blue
RGB
40, 24, 206
HSL
245°, 79%, 45%
CMYK
81, 88, 0, 19
Luminance
0.0556
Every format
| HEX | #2818ce |
| RGB | rgb(40, 24, 206) |
| HSL | hsl(245, 79%, 45%) |
| CMYK | cmyk(81%, 88%, 0%, 19%) |
| LAB | lab(28.3 62.3 -86.5) |
| LCH | lch(28.3 106.7 305.8) |
| OKLCH | oklch(0.410 0.250 270.6) |
Copy-ready code
/* CSS */
color: #2818ce;
background-color: #2818ce;
/* Tailwind (arbitrary) */
class="text-[#2818ce] bg-[#2818ce]"
/* SCSS */
$brand: #2818ce;
/* SwiftUI */
Color(red: 0.157, green: 0.094, blue: 0.808)
/* Android */
Color.parseColor("#2818ce")Accessibility — WCAG contrast
Aa
#2818ce on white: 9.94:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2818ce on black: 2.11:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green9.4%
Blue80.8%
CMYK percentages
Cyan80.6%
Magenta88.3%
Yellow0.0%
Key (black)19.2%
Color previews
#2818ce text on a black background
contrast 2.11:1
Card sample
#2818ce text on a white background
contrast 9.94:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2818ce;
Background color
Panel with #2818ce background
background-color: #2818ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2818ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 24, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 24, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2818ce; background: linear-gradient(135deg, #2818ce, #A118CE);