#2B1982#2B1982
#2B1982 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 280.0°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1982 |
|---|---|
| RGB | rgb(43, 25, 130) |
| HSL | hsl(250, 68%, 30%) |
| HSV | hsv(250, 81%, 51%) |
| CMYK | cmyk(66.9%, 80.8%, 0%, 49%) |
| CIE-LAB | lab(19.31, 39.69, -55.36) |
| CIE-LCH | lch(19.31, 68.12, 305.64°) |
| OKLab | oklab(32.21% 0.0281 -0.1598) |
| OKLCH | oklch(32.21% 0.162 280) |
| XYZ | xyz(5.3719, 2.8201, 21.3760) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.39
Midnight Blue
#191970
ΔE00 3.64
Indigo (survey)
#380282
ΔE00 3.91
Darkblue
#00008B
ΔE00 4.84
Navy
#000080
ΔE00 5.02
Dark Royal Blue
#02066F
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1982 #708219
analogous
#193B82 #2B1982 #601982
triadic
#2B1982 #822B19 #19822B
tetradic
#2B1982 #82193B #708219 #198260
square
#2B1982 #82193B #708219 #198260
split-complementary
#2B1982 #826019 #3B8219
monochromatic
#09051B #1A0F4F #2B1982 #3C23B5 #573CD9
Accessibility & contrast
On white
13.43
#2B1982 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2B1982 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1982
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1982 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1982 | 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)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b1982; /* rgb */ color: rgb(43, 25, 130); /* oklch */ color: oklch(32.2% 0.162 280.0);
Tailwind
colors: {
custom: {
50: '#7259a7',
500: '#2b1982',
950: '#000000',
},
}SCSS
$custom: #2b1982; $custom-light: #7259a7; $custom-dark: #000000;
JSON
{
"hex": "#2b1982",
"rgb": {
"r": 43,
"g": 25,
"b": 130
},
"hsl": {
"h": 250.286,
"s": 67.742,
"l": 30.392
},
"oklch": {
"l": 0.32207,
"c": 0.16227,
"h": 280
},
"luminance": 0.02821
}Semantic roles & 50–950 ramp
primary
#2B1982
secondary
#A2B641
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F