#0804ff
a balanced, electric blue · warm · “blue”
RGB
8, 4, 255
HSL
241°, 100%, 51%
CMYK
97, 98, 0, 0
Luminance
0.0736
Every format
| HEX | #0804ff |
| RGB | rgb(8, 4, 255) |
| HSL | hsl(241, 100%, 51%) |
| CMYK | cmyk(97%, 98%, 0%, 0%) |
| LAB | lab(32.6 78.6 -107.3) |
| LCH | lch(32.6 133.1 306.2) |
| OKLCH | oklch(0.454 0.311 264.6) |
Copy-ready code
/* CSS */
color: #0804ff;
background-color: #0804ff;
/* Tailwind (arbitrary) */
class="text-[#0804ff] bg-[#0804ff]"
/* SCSS */
$brand: #0804ff;
/* SwiftUI */
Color(red: 0.031, green: 0.016, blue: 1.000)
/* Android */
Color.parseColor("#0804ff")Accessibility — WCAG contrast
Aa
#0804ff on white: 8.50:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0804ff on black: 2.47:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.1%
Green1.6%
Blue100.0%
CMYK percentages
Cyan96.9%
Magenta98.4%
Yellow0.0%
Key (black)0.0%
Color previews
#0804ff text on a black background
contrast 2.47:1
Card sample
#0804ff text on a white background
contrast 8.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0804ff;
Background color
Panel with #0804ff background
background-color: #0804ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0804ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(8, 4, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 4, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0804ff; background: linear-gradient(135deg, #0804ff, #B004FF);