#2C115F#2C115F
#2C115F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.127 H 291.5°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2C115F |
|---|---|
| RGB | rgb(44, 17, 95) |
| HSL | hsl(261, 70%, 22%) |
| HSV | hsv(261, 82%, 37%) |
| CMYK | cmyk(53.7%, 82.1%, 0%, 62.7%) |
| CIE-LAB | lab(14.19, 33.06, -41.07) |
| CIE-LCH | lch(14.19, 52.73, 308.83°) |
| OKLab | oklab(27.52% 0.0464 -0.118) |
| OKLCH | oklch(27.52% 0.127 291.5) |
| XYZ | xyz(3.3041, 1.7625, 10.9903) |
| Luminance | 0.0176 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.73
Midnight Blue
#191970
ΔE00 4.91
Darkblue (survey)
#030764
ΔE00 5.18
Dark Blue
#00035B
ΔE00 5.56
Dark Royal Blue
#02066F
ΔE00 5.81
Deep Blue
#040273
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C115F #445F11
analogous
#111D5F #2C115F #53115F
triadic
#2C115F #5F2C11 #115F2C
tetradic
#2C115F #5F111D #445F11 #115F53
square
#2C115F #5F111D #445F11 #115F53
split-complementary
#2C115F #5F5311 #1D5F11
monochromatic
#0C051A #14082B #2C115F #441A93 #5C24C7
Accessibility & contrast
On white
15.53
#2C115F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.35
#2C115F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C115F
15.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C115F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C115F | 1.00 | 15.53 | 1.35 | 15.53 |
| #FFFFFF | 15.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#1B2737
Achromatopsia (no color)
#242424
Design tokens & code
CSS
--color: #2c115f; /* rgb */ color: rgb(44, 17, 95); /* oklch */ color: oklch(27.5% 0.127 291.5);
Tailwind
colors: {
custom: {
50: '#6c528d',
500: '#2c115f',
950: '#000000',
},
}SCSS
$custom: #2c115f; $custom-light: #6c528d; $custom-dark: #000000;
JSON
{
"hex": "#2c115f",
"rgb": {
"r": 44,
"g": 17,
"b": 95
},
"hsl": {
"h": 260.769,
"s": 69.643,
"l": 21.961
},
"oklch": {
"l": 0.27519,
"c": 0.12677,
"h": 291.5
},
"luminance": 0.01763
}Semantic roles & 50–950 ramp
primary
#2C115F
secondary
#759834
accent
#EC3BAF
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D