#2C0C4F#2C0C4F
#2C0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.113 H 299.8°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2C0C4F |
|---|---|
| RGB | rgb(44, 12, 79) |
| HSL | hsl(269, 74%, 18%) |
| HSV | hsv(269, 85%, 31%) |
| CMYK | cmyk(44.3%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(11.71, 30.86, -34.29) |
| CIE-LCH | lch(11.71, 46.13, 311.98°) |
| OKLab | oklab(25.29% 0.0561 -0.098) |
| OKLCH | oklch(25.29% 0.113 299.8) |
| XYZ | xyz(2.5811, 1.3629, 7.5227) |
| Luminance | 0.0136 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.17
Dark Violet
#34013F
ΔE00 5.28
Midnight Purple
#280137
ΔE00 5.35
Dark Purple
#35063E
ΔE00 5.67
Deep Purple
#36013F
ΔE00 5.67
Night Blue
#040348
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C0C4F #2F4F0C
analogous
#0C0D4F #2C0C4F #4D0C4F
triadic
#2C0C4F #4F2C0C #0C4F2C
tetradic
#2C0C4F #4F0C0D #2F4F0C #0C4F4D
square
#2C0C4F #4F0C0D #2F4F0C #0C4F4D
split-complementary
#2C0C4F #4F4D0C #0D4F0C
monochromatic
#0F041B #0F041B #2C0C4F #4A1484 #671CB9
Accessibility & contrast
On white
16.50
#2C0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2C0C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C0C4F
16.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C0C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C0C4F | 1.00 | 16.50 | 1.27 | 16.50 |
| #FFFFFF | 16.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#241E2D
Achromatopsia (no color)
#1F1F1F
Design tokens & code
CSS
--color: #2c0c4f; /* rgb */ color: rgb(44, 12, 79); /* oklch */ color: oklch(25.3% 0.113 299.8);
Tailwind
colors: {
custom: {
50: '#6a4f81',
500: '#2c0c4f',
950: '#000000',
},
}SCSS
$custom: #2c0c4f; $custom-light: #6a4f81; $custom-dark: #000000;
JSON
{
"hex": "#2c0c4f",
"rgb": {
"r": 44,
"g": 12,
"b": 79
},
"hsl": {
"h": 268.657,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.25288,
"c": 0.11294,
"h": 299.8
},
"luminance": 0.01363
}Semantic roles & 50–950 ramp
primary
#2C0C4F
secondary
#5E8B2C
accent
#F03898
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C