#2A1B89#2A1B89
#2A1B89 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.169 H 278.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B89 |
|---|---|
| RGB | rgb(42, 27, 137) |
| HSL | hsl(248, 67%, 32%) |
| HSV | hsv(248, 80%, 54%) |
| CMYK | cmyk(69.3%, 80.3%, 0%, 46.3%) |
| CIE-LAB | lab(20.37, 40.77, -58.02) |
| CIE-LCH | lch(20.37, 70.92, 305.10°) |
| OKLab | oklab(33.16% 0.0235 -0.1676) |
| OKLCH | oklch(33.16% 0.169 278) |
| XYZ | xyz(5.8607, 3.0817, 23.9480) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.64
Midnight Blue
#191970
ΔE00 4.38
Indigo (survey)
#380282
ΔE00 4.42
Darkblue
#00008B
ΔE00 4.89
Cobalt Blue
#030AA7
ΔE00 4.93
Navy
#000080
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B89 #7A891B
analogous
#1B4389 #2A1B89 #611B89
triadic
#2A1B89 #892A1B #1B892A
tetradic
#2A1B89 #891B43 #7A891B #1B8961
square
#2A1B89 #891B43 #7A891B #1B8961
split-complementary
#2A1B89 #89611B #43891B
monochromatic
#0B0723 #1A1156 #2A1B89 #3A25BC #5944DA
Accessibility & contrast
On white
12.99
#2A1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2A1B89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B89
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B89 | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1b89; /* rgb */ color: rgb(42, 27, 137); /* oklch */ color: oklch(33.2% 0.169 278.0);
Tailwind
colors: {
custom: {
50: '#735bad',
500: '#2a1b89',
950: '#000000',
},
}SCSS
$custom: #2a1b89; $custom-light: #735bad; $custom-dark: #000000;
JSON
{
"hex": "#2a1b89",
"rgb": {
"r": 42,
"g": 27,
"b": 137
},
"hsl": {
"h": 248.182,
"s": 67.073,
"l": 32.157
},
"oklch": {
"l": 0.33157,
"c": 0.16926,
"h": 278
},
"luminance": 0.03082
}Semantic roles & 50–950 ramp
primary
#2A1B89
secondary
#ABBC44
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F