#2B1A7B#2B1A7B
#2B1A7B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 281.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1A7B |
|---|---|
| RGB | rgb(43, 26, 123) |
| HSL | hsl(251, 65%, 29%) |
| HSV | hsv(251, 79%, 48%) |
| CMYK | cmyk(65%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(18.72, 36.92, -51.88) |
| CIE-LCH | lch(18.72, 63.68, 305.44°) |
| OKLab | oklab(31.57% 0.0295 -0.1497) |
| OKLCH | oklch(31.57% 0.153 281.1) |
| XYZ | xyz(4.9397, 2.6821, 18.9924) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.84
Royal
#0C1793
ΔE00 4.33
Indigo (survey)
#380282
ΔE00 4.36
Dark Royal Blue
#02066F
ΔE00 5.15
Deep Blue
#040273
ΔE00 5.37
Navy
#000080
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1A7B #6A7B1A
analogous
#1A3A7B #2B1A7B #5C1A7B
triadic
#2B1A7B #7B2B1A #1A7B2B
tetradic
#2B1A7B #7B1A3A #6A7B1A #1A7B5C
square
#2B1A7B #7B1A3A #6A7B1A #1A7B5C
split-complementary
#2B1A7B #7B5C1A #3A7B1A
monochromatic
#090519 #190F48 #2B1A7B #3D25AE #553AD5
Accessibility & contrast
On white
13.67
#2B1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2B1A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1A7B
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1A7B | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1a7b; /* rgb */ color: rgb(43, 26, 123); /* oklch */ color: oklch(31.6% 0.153 281.1);
Tailwind
colors: {
custom: {
50: '#7059a2',
500: '#2b1a7b',
950: '#000000',
},
}SCSS
$custom: #2b1a7b; $custom-light: #7059a2; $custom-dark: #000000;
JSON
{
"hex": "#2b1a7b",
"rgb": {
"r": 43,
"g": 26,
"b": 123
},
"hsl": {
"h": 250.515,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.31567,
"c": 0.15257,
"h": 281.1
},
"luminance": 0.02682
}Semantic roles & 50–950 ramp
primary
#2B1A7B
secondary
#9CAF42
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F