#3c0180
a dark, electric violet · warm · closest name: indigo
RGB
60, 1, 128
HSL
268°, 98%, 25%
CMYK
53, 99, 0, 50
Luminance
0.0254
Every format
| HEX | #3c0180 |
| RGB | rgb(60, 1, 128) |
| HSL | hsl(268, 98%, 25%) |
| CMYK | cmyk(53%, 99%, 0%, 50%) |
| LAB | lab(18.1 49.5 -56.0) |
| LCH | lch(18.1 74.8 311.5) |
| OKLCH | oklch(0.318 0.175 293.3) |
Copy-ready code
/* CSS */
color: #3c0180;
background-color: #3c0180;
/* Tailwind (arbitrary) */
class="text-[#3c0180] bg-[#3c0180]"
/* SCSS */
$brand: #3c0180;
/* SwiftUI */
Color(red: 0.235, green: 0.004, blue: 0.502)
/* Android */
Color.parseColor("#3c0180")Accessibility — WCAG contrast
Aa
#3c0180 on white: 13.92:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3c0180 on black: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red23.5%
Green0.4%
Blue50.2%
CMYK percentages
Cyan53.1%
Magenta99.2%
Yellow0.0%
Key (black)49.8%
Color previews
#3c0180 text on a black background
contrast 1.51:1
Card sample
#3c0180 text on a white background
contrast 13.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3c0180;
Background color
Panel with #3c0180 background
background-color: #3c0180;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3c0180;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(60, 1, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(60, 1, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3c0180; background: linear-gradient(135deg, #3c0180, #80016F);