#082040
a deep, electric blue · cool · closest name: black
RGB
8, 32, 64
HSL
214°, 78%, 14%
CMYK
88, 50, 0, 75
Luminance
0.0145
Every format
| HEX | #082040 |
| RGB | rgb(8, 32, 64) |
| HSL | hsl(214, 78%, 14%) |
| CMYK | cmyk(88%, 50%, 0%, 75%) |
| LAB | lab(12.3 4.5 -23.0) |
| LCH | lch(12.3 23.5 281.1) |
| OKLCH | oklch(0.245 0.068 256.8) |
Copy-ready code
/* CSS */
color: #082040;
background-color: #082040;
/* Tailwind (arbitrary) */
class="text-[#082040] bg-[#082040]"
/* SCSS */
$brand: #082040;
/* SwiftUI */
Color(red: 0.031, green: 0.125, blue: 0.251)
/* Android */
Color.parseColor("#082040")Accessibility — WCAG contrast
Aa
#082040 on white: 16.27:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#082040 on black: 1.29:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.1%
Green12.5%
Blue25.1%
CMYK percentages
Cyan87.5%
Magenta50.0%
Yellow0.0%
Key (black)74.9%
Color previews
#082040 text on a black background
contrast 1.29:1
Card sample
#082040 text on a white background
contrast 16.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #082040;
Background color
Panel with #082040 background
background-color: #082040;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #082040;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(8, 32, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 32, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082040; background: linear-gradient(135deg, #082040, #150840);