#2B1B7B#2B1B7B
#2B1B7B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.152 H 281.0°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1B7B |
|---|---|
| RGB | rgb(43, 27, 123) |
| HSL | hsl(250, 64%, 29%) |
| HSV | hsv(250, 78%, 48%) |
| CMYK | cmyk(65%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(18.92, 36.37, -51.56) |
| CIE-LCH | lch(18.92, 63.10, 305.20°) |
| OKLab | oklab(31.7% 0.0288 -0.1488) |
| OKLCH | oklch(31.7% 0.152 281) |
| XYZ | xyz(4.9622, 2.7271, 19.0000) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.80
Royal
#0C1793
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 4.57
Dark Royal Blue
#02066F
ΔE00 5.31
Deep Blue
#040273
ΔE00 5.55
Navy
#000080
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1B7B #6B7B1B
analogous
#1B3B7B #2B1B7B #5B1B7B
triadic
#2B1B7B #7B2B1B #1B7B2B
tetradic
#2B1B7B #7B1B3B #6B7B1B #1B7B5B
square
#2B1B7B #7B1B3B #6B7B1B #1B7B5B
split-complementary
#2B1B7B #7B5B1B #3B7B1B
monochromatic
#090619 #191049 #2B1B7B #3D26AD #563CD4
Accessibility & contrast
On white
13.59
#2B1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2B1B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1B7B
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1B7B | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1b7b; /* rgb */ color: rgb(43, 27, 123); /* oklch */ color: oklch(31.7% 0.152 281.0);
Tailwind
colors: {
custom: {
50: '#705aa2',
500: '#2b1b7b',
950: '#000000',
},
}SCSS
$custom: #2b1b7b; $custom-light: #705aa2; $custom-dark: #000000;
JSON
{
"hex": "#2b1b7b",
"rgb": {
"r": 43,
"g": 27,
"b": 123
},
"hsl": {
"h": 250,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31703,
"c": 0.15153,
"h": 281
},
"luminance": 0.02728
}Semantic roles & 50–950 ramp
primary
#2B1B7B
secondary
#9DAF43
accent
#E741CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F