#2C1266#2C1266
#2C1266 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.134 H 288.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1266 |
|---|---|
| RGB | rgb(44, 18, 102) |
| HSL | hsl(259, 70%, 24%) |
| HSV | hsv(259, 82%, 40%) |
| CMYK | cmyk(56.9%, 82.4%, 0%, 60%) |
| CIE-LAB | lab(15.10, 34.68, -44.22) |
| CIE-LCH | lch(15.10, 56.19, 308.10°) |
| OKLab | oklab(28.38% 0.0433 -0.1272) |
| OKLCH | oklch(28.38% 0.134 288.8) |
| XYZ | xyz(3.6526, 1.9272, 12.7473) |
| Luminance | 0.0193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.54
Midnight Blue
#191970
ΔE00 3.97
Darkblue (survey)
#030764
ΔE00 4.73
Dark Royal Blue
#02066F
ΔE00 5.01
Indigo (survey)
#380282
ΔE00 5.32
Deep Blue
#040273
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1266 #4C6612
analogous
#122266 #2C1266 #561266
triadic
#2C1266 #662C12 #12662C
tetradic
#2C1266 #661222 #4C6612 #126656
square
#2C1266 #661222 #4C6612 #126656
split-complementary
#2C1266 #665612 #226612
monochromatic
#0B051A #160932 #2C1266 #421B9A #5924CE
Accessibility & contrast
On white
15.16
#2C1266 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2C1266 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1266
15.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1266 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1266 | 1.00 | 15.16 | 1.39 | 15.16 |
| #FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#152A3C
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2c1266; /* rgb */ color: rgb(44, 18, 102); /* oklch */ color: oklch(28.4% 0.134 288.8);
Tailwind
colors: {
custom: {
50: '#6d5393',
500: '#2c1266',
950: '#000000',
},
}SCSS
$custom: #2c1266; $custom-light: #6d5393; $custom-dark: #000000;
JSON
{
"hex": "#2c1266",
"rgb": {
"r": 44,
"g": 18,
"b": 102
},
"hsl": {
"h": 258.571,
"s": 70,
"l": 23.529
},
"oklch": {
"l": 0.28379,
"c": 0.13437,
"h": 288.8
},
"luminance": 0.01927
}Semantic roles & 50–950 ramp
primary
#2C1266
secondary
#7E9E36
accent
#ED3BB6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E