#2A1B86#2A1B86
#2A1B86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.166 H 278.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B86 |
|---|---|
| RGB | rgb(42, 27, 134) |
| HSL | hsl(248, 66%, 32%) |
| HSV | hsv(248, 80%, 53%) |
| CMYK | cmyk(68.7%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.03, 39.81, -56.69) |
| CIE-LCH | lch(20.03, 69.28, 305.08°) |
| OKLab | oklab(32.82% 0.0243 -0.1638) |
| OKLCH | oklch(32.82% 0.166 278.5) |
| XYZ | xyz(5.6485, 2.9969, 22.8304) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.92
Midnight Blue
#191970
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.38
Darkblue
#00008B
ΔE00 4.97
Cobalt Blue
#030AA7
ΔE00 5.32
Navy
#000080
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B86 #77861B
analogous
#1B4286 #2A1B86 #601B86
triadic
#2A1B86 #862A1B #1B862A
tetradic
#2A1B86 #861B42 #77861B #1B8660
square
#2A1B86 #861B42 #77861B #1B8660
split-complementary
#2A1B86 #86601B #42861B
monochromatic
#0A0620 #1A1153 #2A1B86 #3A25B9 #5842D9
Accessibility & contrast
On white
13.13
#2A1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2A1B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B86
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B86 | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1b86; /* rgb */ color: rgb(42, 27, 134); /* oklch */ color: oklch(32.8% 0.166 278.5);
Tailwind
colors: {
custom: {
50: '#725aaa',
500: '#2a1b86',
950: '#000000',
},
}SCSS
$custom: #2a1b86; $custom-light: #725aaa; $custom-dark: #000000;
JSON
{
"hex": "#2a1b86",
"rgb": {
"r": 42,
"g": 27,
"b": 134
},
"hsl": {
"h": 248.411,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.32822,
"c": 0.16556,
"h": 278.5
},
"luminance": 0.02997
}Semantic roles & 50–950 ramp
primary
#2A1B86
secondary
#A9B944
accent
#E93ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F