#2B1978#2B1978
#2B1978 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.150 H 281.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1978 |
|---|---|
| RGB | rgb(43, 25, 120) |
| HSL | hsl(251, 66%, 28%) |
| HSV | hsv(251, 79%, 47%) |
| CMYK | cmyk(64.2%, 79.2%, 0%, 52.9%) |
| CIE-LAB | lab(18.21, 36.50, -50.81) |
| CIE-LCH | lch(18.21, 62.56, 305.69°) |
| OKLab | oklab(31.11% 0.031 -0.1466) |
| OKLCH | oklch(31.11% 0.15 281.9) |
| XYZ | xyz(4.7330, 2.5646, 18.0113) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.67
Indigo (survey)
#380282
ΔE00 4.34
Royal
#0C1793
ΔE00 4.74
Dark Royal Blue
#02066F
ΔE00 4.94
Deep Blue
#040273
ΔE00 5.19
Navy
#000080
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1978 #667819
analogous
#193778 #2B1978 #5A1978
triadic
#2B1978 #782B19 #19782B
tetradic
#2B1978 #781937 #667819 #19785A
square
#2B1978 #781937 #667819 #19785A
split-complementary
#2B1978 #785A19 #377819
monochromatic
#090519 #190E45 #2B1978 #3D24AB #5436D5
Accessibility & contrast
On white
13.88
#2B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2B1978 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1978
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1978 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1978 | 1.00 | 13.88 | 1.51 | 13.88 |
| #FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b1978; /* rgb */ color: rgb(43, 25, 120); /* oklch */ color: oklch(31.1% 0.150 281.9);
Tailwind
colors: {
custom: {
50: '#6f58a0',
500: '#2b1978',
950: '#000000',
},
}SCSS
$custom: #2b1978; $custom-light: #6f58a0; $custom-dark: #000000;
JSON
{
"hex": "#2b1978",
"rgb": {
"r": 43,
"g": 25,
"b": 120
},
"hsl": {
"h": 251.368,
"s": 65.517,
"l": 28.431
},
"oklch": {
"l": 0.31109,
"c": 0.14979,
"h": 281.9
},
"luminance": 0.02565
}Semantic roles & 50–950 ramp
primary
#2B1978
secondary
#98AD40
accent
#E83FC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F