#0f08ab
a dark, electric blue · warm · closest name: navy
RGB
15, 8, 171
HSL
243°, 91%, 35%
CMYK
91, 95, 0, 33
Luminance
0.0322
Every format
| HEX | #0f08ab |
| RGB | rgb(15, 8, 171) |
| HSL | hsl(243, 91%, 35%) |
| CMYK | cmyk(91%, 95%, 0%, 33%) |
| LAB | lab(20.9 56.7 -78.1) |
| LCH | lch(20.9 96.5 306.0) |
| OKLCH | oklch(0.344 0.226 266.5) |
Copy-ready code
/* CSS */
color: #0f08ab;
background-color: #0f08ab;
/* Tailwind (arbitrary) */
class="text-[#0f08ab] bg-[#0f08ab]"
/* SCSS */
$brand: #0f08ab;
/* SwiftUI */
Color(red: 0.059, green: 0.031, blue: 0.671)
/* Android */
Color.parseColor("#0f08ab")Accessibility — WCAG contrast
Aa
#0f08ab on white: 12.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f08ab on black: 1.64:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green3.1%
Blue67.1%
CMYK percentages
Cyan91.2%
Magenta95.3%
Yellow0.0%
Key (black)32.9%
Color previews
#0f08ab text on a black background
contrast 1.64:1
Card sample
#0f08ab text on a white background
contrast 12.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f08ab;
Background color
Panel with #0f08ab background
background-color: #0f08ab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f08ab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 8, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 8, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f08ab; background: linear-gradient(135deg, #0f08ab, #7C08AB);