#4f08ab
a dark, electric violet · warm · closest name: navy
RGB
79, 8, 171
HSL
266°, 91%, 35%
CMYK
54, 95, 0, 33
Luminance
0.0478
Every format
| HEX | #4f08ab |
| RGB | rgb(79, 8, 171) |
| HSL | hsl(266, 91%, 35%) |
| CMYK | cmyk(54%, 95%, 0%, 33%) |
| LAB | lab(26.1 59.7 -69.3) |
| LCH | lch(26.1 91.5 310.7) |
| OKLCH | oklch(0.391 0.214 291.4) |
Copy-ready code
/* CSS */
color: #4f08ab;
background-color: #4f08ab;
/* Tailwind (arbitrary) */
class="text-[#4f08ab] bg-[#4f08ab]"
/* SCSS */
$brand: #4f08ab;
/* SwiftUI */
Color(red: 0.310, green: 0.031, blue: 0.671)
/* Android */
Color.parseColor("#4f08ab")Accessibility — WCAG contrast
Aa
#4f08ab on white: 10.74:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f08ab on black: 1.96:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green3.1%
Blue67.1%
CMYK percentages
Cyan53.8%
Magenta95.3%
Yellow0.0%
Key (black)32.9%
Color previews
#4f08ab text on a black background
contrast 1.96:1
Card sample
#4f08ab text on a white background
contrast 10.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f08ab;
Background color
Panel with #4f08ab background
background-color: #4f08ab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f08ab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 8, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 8, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f08ab; background: linear-gradient(135deg, #4f08ab, #AB089A);