#2B1786#2B1786
#2B1786 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.169 H 279.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1786 |
|---|---|
| RGB | rgb(43, 23, 134) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 53%) |
| CMYK | cmyk(67.9%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(19.42, 41.93, -57.70) |
| CIE-LCH | lch(19.42, 71.33, 306.01°) |
| OKLab | oklab(32.42% 0.028 -0.1666) |
| OKLCH | oklch(32.42% 0.169 279.5) |
| XYZ | xyz(5.6044, 2.8472, 22.8039) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.95
Indigo (survey)
#380282
ΔE00 3.56
Midnight Blue
#191970
ΔE00 4.24
Darkblue
#00008B
ΔE00 4.36
Navy
#000080
ΔE00 4.73
Cobalt Blue
#030AA7
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1786 #728617
analogous
#173A86 #2B1786 #621786
triadic
#2B1786 #862B17 #17862B
tetradic
#2B1786 #86173A #728617 #178662
square
#2B1786 #86173A #728617 #178662
split-complementary
#2B1786 #866217 #3A8617
monochromatic
#09051E #1A0E52 #2B1786 #3C20BA #583ADD
Accessibility & contrast
On white
13.38
#2B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2B1786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1786
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1786 | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1786; /* rgb */ color: rgb(43, 23, 134); /* oklch */ color: oklch(32.4% 0.169 279.5);
Tailwind
colors: {
custom: {
50: '#7358aa',
500: '#2b1786',
950: '#000000',
},
}SCSS
$custom: #2b1786; $custom-light: #7358aa; $custom-dark: #000000;
JSON
{
"hex": "#2b1786",
"rgb": {
"r": 43,
"g": 23,
"b": 134
},
"hsl": {
"h": 250.811,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32419,
"c": 0.16894,
"h": 279.5
},
"luminance": 0.02848
}Semantic roles & 50–950 ramp
primary
#2B1786
secondary
#A4BA3F
accent
#ED3ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F