#082f89
a dark, electric blue · cool · closest name: midnightblue
RGB
8, 47, 137
HSL
222°, 89%, 28%
CMYK
94, 66, 0, 46
Luminance
0.0389
Every format
| HEX | #082f89 |
| RGB | rgb(8, 47, 137) |
| HSL | hsl(222, 89%, 28%) |
| CMYK | cmyk(94%, 66%, 0%, 46%) |
| LAB | lab(23.3 25.5 -53.2) |
| LCH | lch(23.3 59.0 295.6) |
| OKLCH | oklch(0.348 0.155 263.1) |
Copy-ready code
/* CSS */
color: #082f89;
background-color: #082f89;
/* Tailwind (arbitrary) */
class="text-[#082f89] bg-[#082f89]"
/* SCSS */
$brand: #082f89;
/* SwiftUI */
Color(red: 0.031, green: 0.184, blue: 0.537)
/* Android */
Color.parseColor("#082f89")Accessibility — WCAG contrast
Aa
#082f89 on white: 11.81:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#082f89 on black: 1.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.1%
Green18.4%
Blue53.7%
CMYK percentages
Cyan94.2%
Magenta65.7%
Yellow0.0%
Key (black)46.3%
Color previews
#082f89 text on a black background
contrast 1.78:1
Card sample
#082f89 text on a white background
contrast 11.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #082f89;
Background color
Panel with #082f89 background
background-color: #082f89;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #082f89;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(8, 47, 137, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 47, 137, 0.45);
Border & gradient
Gradient panel
border: 3px solid #082f89; background: linear-gradient(135deg, #082f89, #370889);