#2C1783#2C1783
#2C1783 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.165 H 280.6°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1783 |
|---|---|
| RGB | rgb(44, 23, 131) |
| HSL | hsl(252, 70%, 30%) |
| HSV | hsv(252, 82%, 51%) |
| CMYK | cmyk(66.4%, 82.4%, 0%, 48.6%) |
| CIE-LAB | lab(19.17, 41.11, -56.22) |
| CIE-LCH | lch(19.17, 69.65, 306.17°) |
| OKLab | oklab(32.17% 0.0305 -0.1623) |
| OKLCH | oklch(32.17% 0.165 280.6) |
| XYZ | xyz(5.4405, 2.7865, 21.7195) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.36
Indigo (survey)
#380282
ΔE00 3.45
Midnight Blue
#191970
ΔE00 3.97
Darkblue
#00008B
ΔE00 4.55
Navy
#000080
ΔE00 4.77
Deep Blue
#040273
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1783 #6E8317
analogous
#173883 #2C1783 #621783
triadic
#2C1783 #832C17 #17832C
tetradic
#2C1783 #831738 #6E8317 #178362
square
#2C1783 #831738 #6E8317 #178362
split-complementary
#2C1783 #836217 #388317
monochromatic
#09051B #1B0E4F #2C1783 #3D20B7 #5838DC
Accessibility & contrast
On white
13.48
#2C1783 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2C1783 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1783
13.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1783 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1783 | 1.00 | 13.48 | 1.56 | 13.48 |
| #FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2c1783; /* rgb */ color: rgb(44, 23, 131); /* oklch */ color: oklch(32.2% 0.165 280.6);
Tailwind
colors: {
custom: {
50: '#7258a8',
500: '#2c1783',
950: '#000000',
},
}SCSS
$custom: #2c1783; $custom-light: #7258a8; $custom-dark: #000000;
JSON
{
"hex": "#2c1783",
"rgb": {
"r": 44,
"g": 23,
"b": 131
},
"hsl": {
"h": 251.667,
"s": 70.13,
"l": 30.196
},
"oklch": {
"l": 0.32165,
"c": 0.16512,
"h": 280.6
},
"luminance": 0.02787
}Semantic roles & 50–950 ramp
primary
#2C1783
secondary
#A0B73F
accent
#ED3BCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F