#3c1eb2
a dark, vivid blue · warm · closest name: navy
RGB
60, 30, 178
HSL
252°, 71%, 41%
CMYK
66, 83, 0, 30
Luminance
0.0510
Every format
| HEX | #3c1eb2 |
| RGB | rgb(60, 30, 178) |
| HSL | hsl(252, 71%, 41%) |
| CMYK | cmyk(66%, 83%, 0%, 30%) |
| LAB | lab(27.0 53.4 -72.0) |
| LCH | lch(27.0 89.7 306.5) |
| OKLCH | oklch(0.395 0.211 279.9) |
Copy-ready code
/* CSS */
color: #3c1eb2;
background-color: #3c1eb2;
/* Tailwind (arbitrary) */
class="text-[#3c1eb2] bg-[#3c1eb2]"
/* SCSS */
$brand: #3c1eb2;
/* SwiftUI */
Color(red: 0.235, green: 0.118, blue: 0.698)
/* Android */
Color.parseColor("#3c1eb2")Accessibility — WCAG contrast
Aa
#3c1eb2 on white: 10.39:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3c1eb2 on black: 2.02:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red23.5%
Green11.8%
Blue69.8%
CMYK percentages
Cyan66.3%
Magenta83.1%
Yellow0.0%
Key (black)30.2%
Color previews
#3c1eb2 text on a black background
contrast 2.02:1
Card sample
#3c1eb2 text on a white background
contrast 10.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3c1eb2;
Background color
Panel with #3c1eb2 background
background-color: #3c1eb2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3c1eb2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(60, 30, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(60, 30, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3c1eb2; background: linear-gradient(135deg, #3c1eb2, #9F1EB2);