#2C1989#2C1989
#2C1989 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.171 H 279.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1989 |
|---|---|
| RGB | rgb(44, 25, 137) |
| HSL | hsl(250, 69%, 32%) |
| HSV | hsv(250, 82%, 54%) |
| CMYK | cmyk(67.9%, 81.8%, 0%, 46.3%) |
| CIE-LAB | lab(20.19, 41.99, -58.31) |
| CIE-LCH | lch(20.19, 71.86, 305.76°) |
| OKLab | oklab(33.08% 0.0275 -0.1684) |
| OKLCH | oklch(33.08% 0.171 279.3) |
| XYZ | xyz(5.9002, 3.0364, 23.9372) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.78
Indigo (survey)
#380282
ΔE00 3.91
Midnight Blue
#191970
ΔE00 4.57
Darkblue
#00008B
ΔE00 4.66
Cobalt Blue
#030AA7
ΔE00 4.83
Navy
#000080
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1989 #768919
analogous
#193E89 #2C1989 #641989
triadic
#2C1989 #892C19 #19892C
tetradic
#2C1989 #89193E #768919 #198964
square
#2C1989 #89193E #768919 #198964
split-complementary
#2C1989 #896419 #3E8919
monochromatic
#0B0621 #1B1055 #2C1989 #3D22BD #5B40DC
Accessibility & contrast
On white
13.06
#2C1989 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2C1989 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1989
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1989 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1989 | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c1989; /* rgb */ color: rgb(44, 25, 137); /* oklch */ color: oklch(33.1% 0.171 279.3);
Tailwind
colors: {
custom: {
50: '#745aad',
500: '#2c1989',
950: '#000000',
},
}SCSS
$custom: #2c1989; $custom-light: #745aad; $custom-dark: #000000;
JSON
{
"hex": "#2c1989",
"rgb": {
"r": 44,
"g": 25,
"b": 137
},
"hsl": {
"h": 250.179,
"s": 69.136,
"l": 31.765
},
"oklch": {
"l": 0.33076,
"c": 0.17063,
"h": 279.3
},
"luminance": 0.03037
}Semantic roles & 50–950 ramp
primary
#2C1989
secondary
#A7BC41
accent
#EC3CCE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F