#082c64
a deep, electric blue · cool · closest name: midnightblue
RGB
8, 44, 100
HSL
217°, 85%, 21%
CMYK
92, 56, 0, 61
Luminance
0.0277
Every format
| HEX | #082c64 |
| RGB | rgb(8, 44, 100) |
| HSL | hsl(217, 85%, 21%) |
| CMYK | cmyk(92%, 56%, 0%, 61%) |
| LAB | lab(19.1 11.8 -36.5) |
| LCH | lch(19.1 38.3 287.9) |
| OKLCH | oklch(0.306 0.107 259.6) |
Copy-ready code
/* CSS */
color: #082c64;
background-color: #082c64;
/* Tailwind (arbitrary) */
class="text-[#082c64] bg-[#082c64]"
/* SCSS */
$brand: #082c64;
/* SwiftUI */
Color(red: 0.031, green: 0.173, blue: 0.392)
/* Android */
Color.parseColor("#082c64")Accessibility — WCAG contrast
Aa
#082c64 on white: 13.51:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#082c64 on black: 1.55:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.1%
Green17.3%
Blue39.2%
CMYK percentages
Cyan92.0%
Magenta56.0%
Yellow0.0%
Key (black)60.8%
Color previews
#082c64 text on a black background
contrast 1.55:1
Card sample
#082c64 text on a white background
contrast 13.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #082c64;
Background color
Panel with #082c64 background
background-color: #082c64;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #082c64;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(8, 44, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 44, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082c64; background: linear-gradient(135deg, #082c64, #210864);