#080c40
a deep, electric blue · warm · closest name: midnightblue
RGB
8, 12, 64
HSL
236°, 78%, 14%
CMYK
88, 81, 0, 75
Luminance
0.0068
Every format
| HEX | #080c40 |
| RGB | rgb(8, 12, 64) |
| HSL | hsl(236, 78%, 14%) |
| CMYK | cmyk(88%, 81%, 0%, 75%) |
| LAB | lab(6.2 19.4 -33.0) |
| LCH | lch(6.2 38.3 300.4) |
| OKLCH | oklch(0.198 0.096 270.4) |
Copy-ready code
/* CSS */
color: #080c40;
background-color: #080c40;
/* Tailwind (arbitrary) */
class="text-[#080c40] bg-[#080c40]"
/* SCSS */
$brand: #080c40;
/* SwiftUI */
Color(red: 0.031, green: 0.047, blue: 0.251)
/* Android */
Color.parseColor("#080c40")Accessibility — WCAG contrast
Aa
#080c40 on white: 18.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#080c40 on black: 1.14:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.1%
Green4.7%
Blue25.1%
CMYK percentages
Cyan87.5%
Magenta81.2%
Yellow0.0%
Key (black)74.9%
Color previews
#080c40 text on a black background
contrast 1.14:1
Card sample
#080c40 text on a white background
contrast 18.47:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #080c40;
Background color
Panel with #080c40 background
background-color: #080c40;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #080c40;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(8, 12, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 12, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #080c40; background: linear-gradient(135deg, #080c40, #290840);