#4f0dab
a dark, electric violet · warm · closest name: navy
RGB
79, 13, 171
HSL
265°, 86%, 36%
CMYK
54, 92, 0, 33
Luminance
0.0489
Every format
| HEX | #4f0dab |
| RGB | rgb(79, 13, 171) |
| HSL | hsl(265, 86%, 36%) |
| CMYK | cmyk(54%, 92%, 0%, 33%) |
| LAB | lab(26.4 58.7 -68.8) |
| LCH | lch(26.4 90.4 310.5) |
| OKLCH | oklch(0.393 0.212 291.1) |
Copy-ready code
/* CSS */
color: #4f0dab;
background-color: #4f0dab;
/* Tailwind (arbitrary) */
class="text-[#4f0dab] bg-[#4f0dab]"
/* SCSS */
$brand: #4f0dab;
/* SwiftUI */
Color(red: 0.310, green: 0.051, blue: 0.671)
/* Android */
Color.parseColor("#4f0dab")Accessibility — WCAG contrast
Aa
#4f0dab on white: 10.62:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f0dab on black: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green5.1%
Blue67.1%
CMYK percentages
Cyan53.8%
Magenta92.4%
Yellow0.0%
Key (black)32.9%
Color previews
#4f0dab text on a black background
contrast 1.98:1
Card sample
#4f0dab text on a white background
contrast 10.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f0dab;
Background color
Panel with #4f0dab background
background-color: #4f0dab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f0dab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 13, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 13, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f0dab; background: linear-gradient(135deg, #4f0dab, #AB0D9E);