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