#2C156A#2C156A
#2C156A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.136 H 286.9°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2C156A |
|---|---|
| RGB | rgb(44, 21, 106) |
| HSL | hsl(256, 67%, 25%) |
| HSV | hsv(256, 80%, 42%) |
| CMYK | cmyk(58.5%, 80.2%, 0%, 58.4%) |
| CIE-LAB | lab(16.07, 34.36, -45.26) |
| CIE-LCH | lch(16.07, 56.82, 307.20°) |
| OKLab | oklab(29.18% 0.0397 -0.1303) |
| OKLCH | oklch(29.18% 0.136 286.9) |
| XYZ | xyz(3.9076, 2.1122, 13.8347) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.31
Dark Indigo
#1F0954
ΔE00 4.27
Darkblue (survey)
#030764
ΔE00 4.86
Dark Royal Blue
#02066F
ΔE00 4.96
Indigo (survey)
#380282
ΔE00 5.12
Deep Blue
#040273
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C156A #536A15
analogous
#15296A #2C156A #56156A
triadic
#2C156A #6A2C15 #156A2C
tetradic
#2C156A #6A1529 #536A15 #156A56
square
#2C156A #6A1529 #536A15 #156A56
split-complementary
#2C156A #6A5615 #296A15
monochromatic
#0B051A #170B37 #2C156A #411F9D #5629D0
Accessibility & contrast
On white
14.76
#2C156A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2C156A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C156A
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C156A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C156A | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#102D3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2c156a; /* rgb */ color: rgb(44, 21, 106); /* oklch */ color: oklch(29.2% 0.136 286.9);
Tailwind
colors: {
custom: {
50: '#6d5596',
500: '#2c156a',
950: '#000000',
},
}SCSS
$custom: #2c156a; $custom-light: #6d5596; $custom-dark: #000000;
JSON
{
"hex": "#2c156a",
"rgb": {
"r": 44,
"g": 21,
"b": 106
},
"hsl": {
"h": 256.235,
"s": 66.929,
"l": 24.902
},
"oklch": {
"l": 0.29182,
"c": 0.13618,
"h": 286.9
},
"luminance": 0.02112
}Semantic roles & 50–950 ramp
primary
#2C156A
secondary
#85A13A
accent
#EA3EBB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E