#4f08cf
a dark, electric violet · warm · closest name: blue
RGB
79, 8, 207
HSL
261°, 93%, 42%
CMYK
62, 96, 0, 19
Luminance
0.0634
Every format
| HEX | #4f08cf |
| RGB | rgb(79, 8, 207) |
| HSL | hsl(261, 93%, 42%) |
| CMYK | cmyk(62%, 96%, 0%, 19%) |
| LAB | lab(30.3 68.2 -83.7) |
| LCH | lch(30.3 108.0 309.2) |
| OKLCH | oklch(0.431 0.249 284.3) |
Copy-ready code
/* CSS */
color: #4f08cf;
background-color: #4f08cf;
/* Tailwind (arbitrary) */
class="text-[#4f08cf] bg-[#4f08cf]"
/* SCSS */
$brand: #4f08cf;
/* SwiftUI */
Color(red: 0.310, green: 0.031, blue: 0.812)
/* Android */
Color.parseColor("#4f08cf")Accessibility — WCAG contrast
Aa
#4f08cf on white: 9.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4f08cf on black: 2.27:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green3.1%
Blue81.2%
CMYK percentages
Cyan61.8%
Magenta96.1%
Yellow0.0%
Key (black)18.8%
Color previews
#4f08cf text on a black background
contrast 2.27:1
Card sample
#4f08cf text on a white background
contrast 9.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f08cf;
Background color
Panel with #4f08cf background
background-color: #4f08cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f08cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 8, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 8, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f08cf; background: linear-gradient(135deg, #4f08cf, #CF08CB);