#2c027f
a dark, electric violet · warm · closest name: navy
RGB
44, 2, 127
HSL
260°, 97%, 25%
CMYK
65, 98, 0, 50
Luminance
0.0211
Every format
| HEX | #2c027f |
| RGB | rgb(44, 2, 127) |
| HSL | hsl(260, 97%, 25%) |
| CMYK | cmyk(65%, 98%, 0%, 50%) |
| LAB | lab(16.1 47.8 -58.8) |
| LCH | lch(16.1 75.8 309.1) |
| OKLCH | oklch(0.299 0.174 283.5) |
Copy-ready code
/* CSS */
color: #2c027f;
background-color: #2c027f;
/* Tailwind (arbitrary) */
class="text-[#2c027f] bg-[#2c027f]"
/* SCSS */
$brand: #2c027f;
/* SwiftUI */
Color(red: 0.173, green: 0.008, blue: 0.498)
/* Android */
Color.parseColor("#2c027f")Accessibility — WCAG contrast
Aa
#2c027f on white: 14.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2c027f on black: 1.42:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red17.3%
Green0.8%
Blue49.8%
CMYK percentages
Cyan65.4%
Magenta98.4%
Yellow0.0%
Key (black)50.2%
Color previews
#2c027f text on a black background
contrast 1.42:1
Card sample
#2c027f text on a white background
contrast 14.77:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2c027f;
Background color
Panel with #2c027f background
background-color: #2c027f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2c027f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(44, 2, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 2, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c027f; background: linear-gradient(135deg, #2c027f, #7F027F);