#2C1076#2C1076
#2C1076 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.155 H 284.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1076 |
|---|---|
| RGB | rgb(44, 16, 118) |
| HSL | hsl(256, 76%, 26%) |
| HSV | hsv(256, 86%, 46%) |
| CMYK | cmyk(62.7%, 86.4%, 0%, 53.7%) |
| CIE-LAB | lab(16.57, 40.39, -52.22) |
| CIE-LCH | lch(16.57, 66.02, 307.72°) |
| OKLab | oklab(29.93% 0.0389 -0.1505) |
| OKLCH | oklch(29.93% 0.155 284.5) |
| XYZ | xyz(4.4930, 2.2138, 17.3266) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Midnight Blue
#191970
ΔE00 3.70
Dark Royal Blue
#02066F
ΔE00 4.11
Deep Blue
#040273
ΔE00 4.11
Navy
#000080
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1076 #5A7610
analogous
#102776 #2C1076 #5F1076
triadic
#2C1076 #762C10 #10762C
tetradic
#2C1076 #761027 #5A7610 #10765F
square
#2C1076 #761027 #5A7610 #10765F
split-complementary
#2C1076 #765F10 #277610
monochromatic
#0A041B #180940 #2C1076 #4017AC #5520E1
Accessibility & contrast
On white
14.56
#2C1076 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2C1076 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1076
14.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1076 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1076 | 1.00 | 14.56 | 1.44 | 14.56 |
| #FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c1076; /* rgb */ color: rgb(44, 16, 118); /* oklch */ color: oklch(29.9% 0.155 284.5);
Tailwind
colors: {
custom: {
50: '#70549f',
500: '#2c1076',
950: '#000000',
},
}SCSS
$custom: #2c1076; $custom-light: #70549f; $custom-dark: #000000;
JSON
{
"hex": "#2c1076",
"rgb": {
"r": 44,
"g": 16,
"b": 118
},
"hsl": {
"h": 256.471,
"s": 76.119,
"l": 26.275
},
"oklch": {
"l": 0.29931,
"c": 0.15546,
"h": 284.5
},
"luminance": 0.02214
}Semantic roles & 50–950 ramp
primary
#2C1076
secondary
#8CAD35
accent
#F335BF
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E