#2B1B7A#2B1B7A
#2B1B7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.150 H 281.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1B7A |
|---|---|
| RGB | rgb(43, 27, 122) |
| HSL | hsl(250, 64%, 29%) |
| HSV | hsv(250, 78%, 48%) |
| CMYK | cmyk(64.8%, 77.9%, 0%, 52.2%) |
| CIE-LAB | lab(18.81, 36.05, -51.10) |
| CIE-LCH | lch(18.81, 62.53, 305.20°) |
| OKLab | oklab(31.6% 0.0291 -0.1474) |
| OKLCH | oklch(31.6% 0.15 281.2) |
| XYZ | xyz(4.8999, 2.7022, 18.6720) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.71
Royal
#0C1793
ΔE00 4.52
Indigo (survey)
#380282
ΔE00 4.63
Dark Royal Blue
#02066F
ΔE00 5.29
Deep Blue
#040273
ΔE00 5.55
Navy
#000080
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1B7A #6A7A1B
analogous
#1B3B7A #2B1B7A #5B1B7A
triadic
#2B1B7A #7A2B1B #1B7A2B
tetradic
#2B1B7A #7A1B3B #6A7A1B #1B7A5B
square
#2B1B7A #7A1B3B #6A7A1B #1B7A5B
split-complementary
#2B1B7A #7A5B1B #3B7A1B
monochromatic
#090619 #191048 #2B1B7A #3D26AC #553CD4
Accessibility & contrast
On white
13.63
#2B1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2B1B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1B7A
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1B7A | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1b7a; /* rgb */ color: rgb(43, 27, 122); /* oklch */ color: oklch(31.6% 0.150 281.2);
Tailwind
colors: {
custom: {
50: '#705aa1',
500: '#2b1b7a',
950: '#000000',
},
}SCSS
$custom: #2b1b7a; $custom-light: #705aa1; $custom-dark: #000000;
JSON
{
"hex": "#2b1b7a",
"rgb": {
"r": 43,
"g": 27,
"b": 122
},
"hsl": {
"h": 250.105,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.31596,
"c": 0.15025,
"h": 281.2
},
"luminance": 0.02703
}Semantic roles & 50–950 ramp
primary
#2B1B7A
secondary
#9CAE43
accent
#E741CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F