#280c49
a deep, vivid violet · warm · closest name: midnightblue
RGB
40, 12, 73
HSL
268°, 72%, 17%
CMYK
45, 84, 0, 71
Luminance
0.0120
Every format
| HEX | #280c49 |
| RGB | rgb(40, 12, 73) |
| HSL | hsl(268, 72%, 17%) |
| CMYK | cmyk(45%, 84%, 0%, 71%) |
| LAB | lab(10.5 28.4 -32.1) |
| LCH | lch(10.5 42.8 311.5) |
| OKLCH | oklch(0.241 0.105 299.1) |
Copy-ready code
/* CSS */
color: #280c49;
background-color: #280c49;
/* Tailwind (arbitrary) */
class="text-[#280c49] bg-[#280c49]"
/* SCSS */
$brand: #280c49;
/* SwiftUI */
Color(red: 0.157, green: 0.047, blue: 0.286)
/* Android */
Color.parseColor("#280c49")Accessibility — WCAG contrast
Aa
#280c49 on white: 16.95:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#280c49 on black: 1.24:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green4.7%
Blue28.6%
CMYK percentages
Cyan45.2%
Magenta83.6%
Yellow0.0%
Key (black)71.4%
Color previews
#280c49 text on a black background
contrast 1.24:1
Card sample
#280c49 text on a white background
contrast 16.95:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #280c49;
Background color
Panel with #280c49 background
background-color: #280c49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #280c49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 12, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 12, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #280c49; background: linear-gradient(135deg, #280c49, #490C42);