#2C115D#2C115D
#2C115D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.124 H 292.2°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2C115D |
|---|---|
| RGB | rgb(44, 17, 93) |
| HSL | hsl(261, 69%, 22%) |
| HSV | hsv(261, 82%, 36%) |
| CMYK | cmyk(52.7%, 81.7%, 0%, 63.5%) |
| CIE-LAB | lab(13.98, 32.46, -40.07) |
| CIE-LCH | lch(13.98, 51.57, 309.01°) |
| OKLab | oklab(27.31% 0.0471 -0.115) |
| OKLCH | oklch(27.31% 0.124 292.2) |
| XYZ | xyz(3.2144, 1.7266, 10.5177) |
| Luminance | 0.0173 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.61
Midnight Blue
#191970
ΔE00 5.20
Darkblue (survey)
#030764
ΔE00 5.40
Dark Blue
#00035B
ΔE00 5.68
Dark Royal Blue
#02066F
ΔE00 6.11
Night Blue
#040348
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C115D #425D11
analogous
#111C5D #2C115D #52115D
triadic
#2C115D #5D2C11 #115D2C
tetradic
#2C115D #5D111C #425D11 #115D52
square
#2C115D #5D111C #425D11 #115D52
split-complementary
#2C115D #5D5211 #1C5D11
monochromatic
#0C051A #140829 #2C115D #441A91 #5D24C4
Accessibility & contrast
On white
15.61
#2C115D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2C115D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C115D
15.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C115D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C115D | 1.00 | 15.61 | 1.35 | 15.61 |
| #FFFFFF | 15.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1C2636
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c115d; /* rgb */ color: rgb(44, 17, 93); /* oklch */ color: oklch(27.3% 0.124 292.2);
Tailwind
colors: {
custom: {
50: '#6b528c',
500: '#2c115d',
950: '#000000',
},
}SCSS
$custom: #2c115d; $custom-light: #6b528c; $custom-dark: #000000;
JSON
{
"hex": "#2c115d",
"rgb": {
"r": 44,
"g": 17,
"b": 93
},
"hsl": {
"h": 261.316,
"s": 69.091,
"l": 21.569
},
"oklch": {
"l": 0.27311,
"c": 0.12429,
"h": 292.2
},
"luminance": 0.01727
}Semantic roles & 50–950 ramp
primary
#2C115D
secondary
#739634
accent
#EC3CAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D