#2C116A#2C116A
#2C116A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.140 H 287.7°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2C116A |
|---|---|
| RGB | rgb(44, 17, 106) |
| HSL | hsl(258, 72%, 24%) |
| HSV | hsv(258, 84%, 42%) |
| CMYK | cmyk(58.5%, 84%, 0%, 58.4%) |
| CIE-LAB | lab(15.37, 36.37, -46.41) |
| CIE-LCH | lch(15.37, 58.97, 308.08°) |
| OKLab | oklab(28.69% 0.0427 -0.1336) |
| OKLCH | oklch(28.69% 0.14 287.7) |
| XYZ | xyz(3.8399, 1.9768, 13.8121) |
| Luminance | 0.0198 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.75
Dark Indigo
#1F0954
ΔE00 4.05
Darkblue (survey)
#030764
ΔE00 4.54
Dark Royal Blue
#02066F
ΔE00 4.56
Indigo (survey)
#380282
ΔE00 4.60
Deep Blue
#040273
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C116A #4F6A11
analogous
#11236A #2C116A #59116A
triadic
#2C116A #6A2C11 #116A2C
tetradic
#2C116A #6A1123 #4F6A11 #116A59
square
#2C116A #6A1123 #4F6A11 #116A59
split-complementary
#2C116A #6A5911 #236A11
monochromatic
#0B041A #160935 #2C116A #42199F #5822D3
Accessibility & contrast
On white
15.05
#2C116A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2C116A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C116A
15.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C116A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C116A | 1.00 | 15.05 | 1.40 | 15.05 |
| #FFFFFF | 15.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#112B3E
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2c116a; /* rgb */ color: rgb(44, 17, 106); /* oklch */ color: oklch(28.7% 0.140 287.7);
Tailwind
colors: {
custom: {
50: '#6e5396',
500: '#2c116a',
950: '#000000',
},
}SCSS
$custom: #2c116a; $custom-light: #6e5396; $custom-dark: #000000;
JSON
{
"hex": "#2c116a",
"rgb": {
"r": 44,
"g": 17,
"b": 106
},
"hsl": {
"h": 258.202,
"s": 72.358,
"l": 24.118
},
"oklch": {
"l": 0.28694,
"c": 0.14025,
"h": 287.7
},
"luminance": 0.01977
}Semantic roles & 50–950 ramp
primary
#2C116A
secondary
#81A235
accent
#EF39B8
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030D
muted
#7B787E