#1818ff
a balanced, electric blue · warm · closest name: blue
RGB
24, 24, 255
HSL
240°, 100%, 55%
CMYK
91, 91, 0, 0
Luminance
0.0807
Every format
| HEX | #1818ff |
| RGB | rgb(24, 24, 255) |
| HSL | hsl(240, 100%, 55%) |
| CMYK | cmyk(91%, 91%, 0%, 0%) |
| LAB | lab(34.1 75.0 -104.8) |
| LCH | lch(34.1 128.9 305.6) |
| OKLCH | oklch(0.466 0.304 266.0) |
Copy-ready code
/* CSS */
color: #1818ff;
background-color: #1818ff;
/* Tailwind (arbitrary) */
class="text-[#1818ff] bg-[#1818ff]"
/* SCSS */
$brand: #1818ff;
/* SwiftUI */
Color(red: 0.094, green: 0.094, blue: 1.000)
/* Android */
Color.parseColor("#1818ff")Accessibility — WCAG contrast
Aa
#1818ff on white: 8.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#1818ff on black: 2.61:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.4%
Green9.4%
Blue100.0%
CMYK percentages
Cyan90.6%
Magenta90.6%
Yellow0.0%
Key (black)0.0%
Color previews
#1818ff text on a black background
contrast 2.61:1
Card sample
#1818ff text on a white background
contrast 8.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1818ff;
Background color
Panel with #1818ff background
background-color: #1818ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1818ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(24, 24, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(24, 24, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1818ff; background: linear-gradient(135deg, #1818ff, #B218FF);