#0f397b
a dark, electric blue · cool · closest name: midnightblue
RGB
15, 57, 123
HSL
217°, 78%, 27%
CMYK
88, 54, 0, 52
Luminance
0.0446
Every format
| HEX | #0f397b |
| RGB | rgb(15, 57, 123) |
| HSL | hsl(217, 78%, 27%) |
| CMYK | cmyk(88%, 54%, 0%, 52%) |
| LAB | lab(25.1 12.9 -41.5) |
| LCH | lch(25.1 43.4 287.3) |
| OKLCH | oklch(0.359 0.122 259.6) |
Copy-ready code
/* CSS */
color: #0f397b;
background-color: #0f397b;
/* Tailwind (arbitrary) */
class="text-[#0f397b] bg-[#0f397b]"
/* SCSS */
$brand: #0f397b;
/* SwiftUI */
Color(red: 0.059, green: 0.224, blue: 0.482)
/* Android */
Color.parseColor("#0f397b")Accessibility — WCAG contrast
Aa
#0f397b on white: 11.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f397b on black: 1.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green22.4%
Blue48.2%
CMYK percentages
Cyan87.8%
Magenta53.7%
Yellow0.0%
Key (black)51.8%
Color previews
#0f397b text on a black background
contrast 1.89:1
Card sample
#0f397b text on a white background
contrast 11.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f397b;
Background color
Panel with #0f397b background
background-color: #0f397b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f397b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 57, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 57, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f397b; background: linear-gradient(135deg, #0f397b, #2D0F7B);