#2C1986#2C1986
#2C1986 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.167 H 279.8°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1986 |
|---|---|
| RGB | rgb(44, 25, 134) |
| HSL | hsl(250, 69%, 31%) |
| HSV | hsv(250, 81%, 53%) |
| CMYK | cmyk(67.2%, 81.3%, 0%, 47.5%) |
| CIE-LAB | lab(19.85, 41.05, -56.99) |
| CIE-LCH | lch(19.85, 70.24, 305.77°) |
| OKLab | oklab(32.74% 0.0285 -0.1645) |
| OKLCH | oklch(32.74% 0.167 279.8) |
| XYZ | xyz(5.6880, 2.9515, 22.8196) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.05
Indigo (survey)
#380282
ΔE00 3.84
Midnight Blue
#191970
ΔE00 4.20
Darkblue
#00008B
ΔE00 4.73
Navy
#000080
ΔE00 5.10
Cobalt Blue
#030AA7
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1986 #738619
analogous
#193C86 #2C1986 #621986
triadic
#2C1986 #862C19 #19862C
tetradic
#2C1986 #86193C #738619 #198662
square
#2C1986 #86193C #738619 #198662
split-complementary
#2C1986 #866219 #3C8619
monochromatic
#0A061F #1B0F52 #2C1986 #3D23BA #5A3EDB
Accessibility & contrast
On white
13.20
#2C1986 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2C1986 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1986
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1986 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1986 | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2c1986; /* rgb */ color: rgb(44, 25, 134); /* oklch */ color: oklch(32.7% 0.167 279.8);
Tailwind
colors: {
custom: {
50: '#7359aa',
500: '#2c1986',
950: '#000000',
},
}SCSS
$custom: #2c1986; $custom-light: #7359aa; $custom-dark: #000000;
JSON
{
"hex": "#2c1986",
"rgb": {
"r": 44,
"g": 25,
"b": 134
},
"hsl": {
"h": 250.459,
"s": 68.553,
"l": 31.176
},
"oklch": {
"l": 0.32739,
"c": 0.16698,
"h": 279.8
},
"luminance": 0.02952
}Semantic roles & 50–950 ramp
primary
#2C1986
secondary
#A5BA41
accent
#EB3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F