#2B1A7A#2B1A7A
#2B1A7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.151 H 281.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1A7A |
|---|---|
| RGB | rgb(43, 26, 122) |
| HSL | hsl(251, 65%, 29%) |
| HSV | hsv(251, 79%, 48%) |
| CMYK | cmyk(64.8%, 78.7%, 0%, 52.2%) |
| CIE-LAB | lab(18.62, 36.60, -51.42) |
| CIE-LCH | lch(18.62, 63.11, 305.44°) |
| OKLab | oklab(31.46% 0.0298 -0.1483) |
| OKLCH | oklch(31.46% 0.151 281.3) |
| XYZ | xyz(4.8774, 2.6572, 18.6644) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Indigo (survey)
#380282
ΔE00 4.42
Royal
#0C1793
ΔE00 4.47
Dark Royal Blue
#02066F
ΔE00 5.13
Deep Blue
#040273
ΔE00 5.36
Navy
#000080
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1A7A #697A1A
analogous
#1A397A #2B1A7A #5B1A7A
triadic
#2B1A7A #7A2B1A #1A7A2B
tetradic
#2B1A7A #7A1A39 #697A1A #1A7A5B
square
#2B1A7A #7A1A39 #697A1A #1A7A5B
split-complementary
#2B1A7A #7A5B1A #397A1A
monochromatic
#090519 #190F48 #2B1A7A #3D25AC #5539D5
Accessibility & contrast
On white
13.71
#2B1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2B1A7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1A7A
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1A7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1A7A | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2b1a7a; /* rgb */ color: rgb(43, 26, 122); /* oklch */ color: oklch(31.5% 0.151 281.3);
Tailwind
colors: {
custom: {
50: '#7059a1',
500: '#2b1a7a',
950: '#000000',
},
}SCSS
$custom: #2b1a7a; $custom-light: #7059a1; $custom-dark: #000000;
JSON
{
"hex": "#2b1a7a",
"rgb": {
"r": 43,
"g": 26,
"b": 122
},
"hsl": {
"h": 250.625,
"s": 64.865,
"l": 29.02
},
"oklch": {
"l": 0.31459,
"c": 0.1513,
"h": 281.3
},
"luminance": 0.02658
}Semantic roles & 50–950 ramp
primary
#2B1A7A
secondary
#9BAE41
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F