#2B1887#2B1887
#2B1887 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.169 H 279.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1887 |
|---|---|
| RGB | rgb(43, 24, 135) |
| HSL | hsl(250, 70%, 31%) |
| HSV | hsv(250, 82%, 53%) |
| CMYK | cmyk(68.1%, 82.2%, 0%, 47.1%) |
| CIE-LAB | lab(19.70, 41.76, -57.86) |
| CIE-LCH | lch(19.70, 71.36, 305.82°) |
| OKLab | oklab(32.65% 0.0272 -0.1671) |
| OKLCH | oklch(32.65% 0.169 279.2) |
| XYZ | xyz(5.6947, 2.9157, 23.1797) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Indigo (survey)
#380282
ΔE00 3.75
Midnight Blue
#191970
ΔE00 4.31
Darkblue
#00008B
ΔE00 4.48
Navy
#000080
ΔE00 4.90
Cobalt Blue
#030AA7
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1887 #748718
analogous
#183C87 #2B1887 #621887
triadic
#2B1887 #872B18 #18872B
tetradic
#2B1887 #87183C #748718 #188762
square
#2B1887 #87183C #748718 #188762
split-complementary
#2B1887 #876218 #3C8718
monochromatic
#0A061F #1A0F53 #2B1887 #3C21BB #583DDC
Accessibility & contrast
On white
13.26
#2B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2B1887 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1887
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1887 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1887 | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b1887; /* rgb */ color: rgb(43, 24, 135); /* oklch */ color: oklch(32.6% 0.169 279.2);
Tailwind
colors: {
custom: {
50: '#7359ab',
500: '#2b1887',
950: '#000000',
},
}SCSS
$custom: #2b1887; $custom-light: #7359ab; $custom-dark: #000000;
JSON
{
"hex": "#2b1887",
"rgb": {
"r": 43,
"g": 24,
"b": 135
},
"hsl": {
"h": 250.27,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.32649,
"c": 0.16928,
"h": 279.2
},
"luminance": 0.02916
}Semantic roles & 50–950 ramp
primary
#2B1887
secondary
#A6BB40
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F