#3e1fab
a dark, vivid blue · warm · closest name: navy
RGB
62, 31, 171
HSL
253°, 69%, 40%
CMYK
64, 82, 0, 33
Luminance
0.0494
Every format
| HEX | #3e1fab |
| RGB | rgb(62, 31, 171) |
| HSL | hsl(253, 69%, 40%) |
| CMYK | cmyk(64%, 82%, 0%, 33%) |
| LAB | lab(26.6 51.1 -68.6) |
| LCH | lch(26.6 85.5 306.7) |
| OKLCH | oklch(0.390 0.202 281.8) |
Copy-ready code
/* CSS */
color: #3e1fab;
background-color: #3e1fab;
/* Tailwind (arbitrary) */
class="text-[#3e1fab] bg-[#3e1fab]"
/* SCSS */
$brand: #3e1fab;
/* SwiftUI */
Color(red: 0.243, green: 0.122, blue: 0.671)
/* Android */
Color.parseColor("#3e1fab")Accessibility — WCAG contrast
Aa
#3e1fab on white: 10.56:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3e1fab on black: 1.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red24.3%
Green12.2%
Blue67.1%
CMYK percentages
Cyan63.7%
Magenta81.9%
Yellow0.0%
Key (black)32.9%
Color previews
#3e1fab text on a black background
contrast 1.99:1
Card sample
#3e1fab text on a white background
contrast 10.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3e1fab;
Background color
Panel with #3e1fab background
background-color: #3e1fab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3e1fab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(62, 31, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(62, 31, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3e1fab; background: linear-gradient(135deg, #3e1fab, #9B1FAB);