#1b0821
a deep, vivid violet · warm · closest name: black
RGB
27, 8, 33
HSL
286°, 61%, 8%
CMYK
18, 76, 0, 87
Luminance
0.0052
Every format
| HEX | #1b0821 |
| RGB | rgb(27, 8, 33) |
| HSL | hsl(286, 61%, 8%) |
| CMYK | cmyk(18%, 76%, 0%, 87%) |
| LAB | lab(4.7 13.2 -12.3) |
| LCH | lch(4.7 18.0 317.1) |
| OKLCH | oklch(0.180 0.055 317.5) |
Copy-ready code
/* CSS */
color: #1b0821;
background-color: #1b0821;
/* Tailwind (arbitrary) */
class="text-[#1b0821] bg-[#1b0821]"
/* SCSS */
$brand: #1b0821;
/* SwiftUI */
Color(red: 0.106, green: 0.031, blue: 0.129)
/* Android */
Color.parseColor("#1b0821")Accessibility — WCAG contrast
Aa
#1b0821 on white: 19.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#1b0821 on black: 1.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red10.6%
Green3.1%
Blue12.9%
CMYK percentages
Cyan18.2%
Magenta75.8%
Yellow0.0%
Key (black)87.1%
Color previews
#1b0821 text on a black background
contrast 1.10:1
Card sample
#1b0821 text on a white background
contrast 19.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1b0821;
Background color
Panel with #1b0821 background
background-color: #1b0821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1b0821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(27, 8, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 8, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1b0821; background: linear-gradient(135deg, #1b0821, #210816);