#2A1B87#2A1B87
#2A1B87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.167 H 278.3°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B87 |
|---|---|
| RGB | rgb(42, 27, 135) |
| HSL | hsl(248, 67%, 32%) |
| HSV | hsv(248, 80%, 53%) |
| CMYK | cmyk(68.9%, 80%, 0%, 47.1%) |
| CIE-LAB | lab(20.14, 40.13, -57.14) |
| CIE-LCH | lch(20.14, 69.82, 305.08°) |
| OKLab | oklab(32.93% 0.024 -0.165) |
| OKLCH | oklch(32.93% 0.167 278.3) |
| XYZ | xyz(5.7185, 3.0249, 23.1995) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Midnight Blue
#191970
ΔE00 4.11
Indigo (survey)
#380282
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.93
Cobalt Blue
#030AA7
ΔE00 5.19
Navy
#000080
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B87 #78871B
analogous
#1B4287 #2A1B87 #601B87
triadic
#2A1B87 #872A1B #1B872A
tetradic
#2A1B87 #871B42 #78871B #1B8760
square
#2A1B87 #871B42 #78871B #1B8760
split-complementary
#2A1B87 #87601B #42871B
monochromatic
#0A0721 #1A1154 #2A1B87 #3A25BA #5843D9
Accessibility & contrast
On white
13.08
#2A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2A1B87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B87
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B87 | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1b87; /* rgb */ color: rgb(42, 27, 135); /* oklch */ color: oklch(32.9% 0.167 278.3);
Tailwind
colors: {
custom: {
50: '#725aab',
500: '#2a1b87',
950: '#000000',
},
}SCSS
$custom: #2a1b87; $custom-light: #725aab; $custom-dark: #000000;
JSON
{
"hex": "#2a1b87",
"rgb": {
"r": 42,
"g": 27,
"b": 135
},
"hsl": {
"h": 248.333,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.32934,
"c": 0.16679,
"h": 278.3
},
"luminance": 0.03025
}Semantic roles & 50–950 ramp
primary
#2A1B87
secondary
#AABA44
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F