#2B1886#2B1886
#2B1886 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.168 H 279.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1886 |
|---|---|
| RGB | rgb(43, 24, 134) |
| HSL | hsl(250, 70%, 31%) |
| HSV | hsv(250, 82%, 53%) |
| CMYK | cmyk(67.9%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.59, 41.45, -57.42) |
| CIE-LCH | lch(19.59, 70.82, 305.82°) |
| OKLab | oklab(32.53% 0.0275 -0.1658) |
| OKLCH | oklch(32.53% 0.168 279.4) |
| XYZ | xyz(5.6246, 2.8876, 22.8106) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.95
Indigo (survey)
#380282
ΔE00 3.73
Midnight Blue
#191970
ΔE00 4.18
Darkblue
#00008B
ΔE00 4.51
Navy
#000080
ΔE00 4.88
Cobalt Blue
#030AA7
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1886 #738618
analogous
#183C86 #2B1886 #621886
triadic
#2B1886 #862B18 #18862B
tetradic
#2B1886 #86183C #738618 #188662
square
#2B1886 #86183C #738618 #188662
split-complementary
#2B1886 #866218 #3C8618
monochromatic
#0A051E #1A0F52 #2B1886 #3C21BA #583CDC
Accessibility & contrast
On white
13.31
#2B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2B1886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1886
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1886 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1886; /* rgb */ color: rgb(43, 24, 134); /* oklch */ color: oklch(32.5% 0.168 279.4);
Tailwind
colors: {
custom: {
50: '#7359aa',
500: '#2b1886',
950: '#000000',
},
}SCSS
$custom: #2b1886; $custom-light: #7359aa; $custom-dark: #000000;
JSON
{
"hex": "#2b1886",
"rgb": {
"r": 43,
"g": 24,
"b": 134
},
"hsl": {
"h": 250.364,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.32535,
"c": 0.16808,
"h": 279.4
},
"luminance": 0.02888
}Semantic roles & 50–950 ramp
primary
#2B1886
secondary
#A5BA40
accent
#EC3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F