#2A1E87#2A1E87
#2A1E87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.164 H 277.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1E87 |
|---|---|
| RGB | rgb(42, 30, 135) |
| HSL | hsl(247, 64%, 32%) |
| HSV | hsv(247, 78%, 53%) |
| CMYK | cmyk(68.9%, 77.8%, 0%, 47.1%) |
| CIE-LAB | lab(20.71, 38.51, -56.20) |
| CIE-LCH | lch(20.71, 68.13, 304.42°) |
| OKLab | oklab(33.33% 0.0223 -0.1623) |
| OKLCH | oklch(33.33% 0.164 277.8) |
| XYZ | xyz(5.7909, 3.1696, 23.2236) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.04
Midnight Blue
#191970
ΔE00 4.08
Indigo (survey)
#380282
ΔE00 5.01
Darkblue
#00008B
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 5.53
Navy
#000080
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1E87 #7B871E
analogous
#1E4787 #2A1E87 #5E1E87
triadic
#2A1E87 #872A1E #1E872A
tetradic
#2A1E87 #871E47 #7B871E #1E875E
square
#2A1E87 #871E47 #7B871E #1E875E
split-complementary
#2A1E87 #875E1E #47871E
monochromatic
#0B0823 #1A1355 #2A1E87 #3A29B9 #5949D7
Accessibility & contrast
On white
12.85
#2A1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2A1E87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1E87
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1E87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1E87 | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a1e87; /* rgb */ color: rgb(42, 30, 135); /* oklch */ color: oklch(33.3% 0.164 277.8);
Tailwind
colors: {
custom: {
50: '#725cab',
500: '#2a1e87',
950: '#000000',
},
}SCSS
$custom: #2a1e87; $custom-light: #725cab; $custom-dark: #000000;
JSON
{
"hex": "#2a1e87",
"rgb": {
"r": 42,
"g": 30,
"b": 135
},
"hsl": {
"h": 246.857,
"s": 63.636,
"l": 32.353
},
"oklch": {
"l": 0.33331,
"c": 0.16388,
"h": 277.8
},
"luminance": 0.0317
}Semantic roles & 50–950 ramp
primary
#2A1E87
secondary
#ACB948
accent
#E741D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F