#2B1885#2B1885
#2B1885 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.167 H 279.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1885 |
|---|---|
| RGB | rgb(43, 24, 133) |
| HSL | hsl(250, 69%, 31%) |
| HSV | hsv(250, 82%, 52%) |
| CMYK | cmyk(67.7%, 82%, 0%, 47.8%) |
| CIE-LAB | lab(19.47, 41.14, -56.98) |
| CIE-LCH | lch(19.47, 70.28, 305.82°) |
| OKLab | oklab(32.42% 0.0278 -0.1645) |
| OKLCH | oklch(32.42% 0.167 279.6) |
| XYZ | xyz(5.5552, 2.8599, 22.4450) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.05
Indigo (survey)
#380282
ΔE00 3.72
Midnight Blue
#191970
ΔE00 4.06
Darkblue
#00008B
ΔE00 4.54
Navy
#000080
ΔE00 4.87
Cobalt Blue
#030AA7
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1885 #728518
analogous
#183B85 #2B1885 #611885
triadic
#2B1885 #852B18 #18852B
tetradic
#2B1885 #85183B #728518 #188561
square
#2B1885 #85183B #728518 #188561
split-complementary
#2B1885 #856118 #3B8518
monochromatic
#09051D #1A0F51 #2B1885 #3C21B9 #583CDC
Accessibility & contrast
On white
13.36
#2B1885 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2B1885 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1885
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1885 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1885 | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1885; /* rgb */ color: rgb(43, 24, 133); /* oklch */ color: oklch(32.4% 0.167 279.6);
Tailwind
colors: {
custom: {
50: '#7259aa',
500: '#2b1885',
950: '#000000',
},
}SCSS
$custom: #2b1885; $custom-light: #7259aa; $custom-dark: #000000;
JSON
{
"hex": "#2b1885",
"rgb": {
"r": 43,
"g": 24,
"b": 133
},
"hsl": {
"h": 250.459,
"s": 69.427,
"l": 30.784
},
"oklch": {
"l": 0.32422,
"c": 0.16686,
"h": 279.6
},
"luminance": 0.0286
}Semantic roles & 50–950 ramp
primary
#2B1885
secondary
#A4B940
accent
#EC3CCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F