#2B1785#2B1785
#2B1785 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.168 H 279.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1785 |
|---|---|
| RGB | rgb(43, 23, 133) |
| HSL | hsl(251, 71%, 31%) |
| HSV | hsv(251, 83%, 52%) |
| CMYK | cmyk(67.7%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.31, 41.62, -57.26) |
| CIE-LCH | lch(19.31, 70.79, 306.01°) |
| OKLab | oklab(32.31% 0.0283 -0.1653) |
| OKLCH | oklch(32.31% 0.168 279.7) |
| XYZ | xyz(5.5349, 2.8194, 22.4383) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.05
Indigo (survey)
#380282
ΔE00 3.54
Midnight Blue
#191970
ΔE00 4.12
Darkblue
#00008B
ΔE00 4.39
Navy
#000080
ΔE00 4.71
Cobalt Blue
#030AA7
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1785 #718517
analogous
#173A85 #2B1785 #621785
triadic
#2B1785 #852B17 #17852B
tetradic
#2B1785 #85173A #718517 #178562
square
#2B1785 #85173A #718517 #178562
split-complementary
#2B1785 #856217 #3A8517
monochromatic
#09051D #1A0E51 #2B1785 #3C20B9 #573ADD
Accessibility & contrast
On white
13.43
#2B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2B1785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1785
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1785 | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1785; /* rgb */ color: rgb(43, 23, 133); /* oklch */ color: oklch(32.3% 0.168 279.7);
Tailwind
colors: {
custom: {
50: '#7258aa',
500: '#2b1785',
950: '#000000',
},
}SCSS
$custom: #2b1785; $custom-light: #7258aa; $custom-dark: #000000;
JSON
{
"hex": "#2b1785",
"rgb": {
"r": 43,
"g": 23,
"b": 133
},
"hsl": {
"h": 250.909,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.32305,
"c": 0.16773,
"h": 279.7
},
"luminance": 0.0282
}Semantic roles & 50–950 ramp
primary
#2B1785
secondary
#A3B93F
accent
#ED3BCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F