#2A1B84#2A1B84
#2A1B84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.163 H 278.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B84 |
|---|---|
| RGB | rgb(42, 27, 132) |
| HSL | hsl(249, 66%, 31%) |
| HSV | hsv(249, 80%, 52%) |
| CMYK | cmyk(68.2%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(19.81, 39.17, -55.80) |
| CIE-LCH | lch(19.81, 68.18, 305.07°) |
| OKLab | oklab(32.6% 0.0249 -0.1612) |
| OKLCH | oklch(32.6% 0.163 278.8) |
| XYZ | xyz(5.5103, 2.9416, 22.1027) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.13
Midnight Blue
#191970
ΔE00 3.72
Indigo (survey)
#380282
ΔE00 4.37
Darkblue
#00008B
ΔE00 5.04
Navy
#000080
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B84 #75841B
analogous
#1B4084 #2A1B84 #5E1B84
triadic
#2A1B84 #842A1B #1B842A
tetradic
#2A1B84 #841B40 #75841B #1B845E
square
#2A1B84 #841B40 #75841B #1B845E
split-complementary
#2A1B84 #845E1B #40841B
monochromatic
#0A061E #1A1151 #2A1B84 #3A25B7 #5741D8
Accessibility & contrast
On white
13.22
#2A1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2A1B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B84
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B84 | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1b84; /* rgb */ color: rgb(42, 27, 132); /* oklch */ color: oklch(32.6% 0.163 278.8);
Tailwind
colors: {
custom: {
50: '#715aa9',
500: '#2a1b84',
950: '#000000',
},
}SCSS
$custom: #2a1b84; $custom-light: #715aa9; $custom-dark: #000000;
JSON
{
"hex": "#2a1b84",
"rgb": {
"r": 42,
"g": 27,
"b": 132
},
"hsl": {
"h": 248.571,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.326,
"c": 0.16307,
"h": 278.8
},
"luminance": 0.02942
}Semantic roles & 50–950 ramp
primary
#2A1B84
secondary
#A7B743
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F