#2A1E82#2A1E82
#2A1E82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 278.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1E82 |
|---|---|
| RGB | rgb(42, 30, 130) |
| HSL | hsl(247, 63%, 31%) |
| HSV | hsv(247, 77%, 51%) |
| CMYK | cmyk(67.7%, 76.9%, 0%, 49%) |
| CIE-LAB | lab(20.17, 36.86, -53.94) |
| CIE-LCH | lch(20.17, 65.33, 304.35°) |
| OKLab | oklab(32.79% 0.0236 -0.1558) |
| OKLCH | oklch(32.79% 0.158 278.6) |
| XYZ | xyz(5.4471, 3.0320, 21.4130) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.44
Royal
#0C1793
ΔE00 3.58
Indigo (survey)
#380282
ΔE00 5.06
Darkblue
#00008B
ΔE00 5.74
Navy
#000080
ΔE00 5.92
Dark Royal Blue
#02066F
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1E82 #76821E
analogous
#1E4482 #2A1E82 #5C1E82
triadic
#2A1E82 #822A1E #1E822A
tetradic
#2A1E82 #821E44 #76821E #1E825C
square
#2A1E82 #821E44 #76821E #1E825C
split-complementary
#2A1E82 #825C1E #44821E
monochromatic
#0A071F #1A1350 #2A1E82 #3A29B4 #5746D4
Accessibility & contrast
On white
13.07
#2A1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2A1E82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1E82
13.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1E82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1E82 | 1.00 | 13.07 | 1.61 | 13.07 |
| #FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1e82; /* rgb */ color: rgb(42, 30, 130); /* oklch */ color: oklch(32.8% 0.158 278.6);
Tailwind
colors: {
custom: {
50: '#715ca7',
500: '#2a1e82',
950: '#000000',
},
}SCSS
$custom: #2a1e82; $custom-light: #715ca7; $custom-dark: #000000;
JSON
{
"hex": "#2a1e82",
"rgb": {
"r": 42,
"g": 30,
"b": 130
},
"hsl": {
"h": 247.2,
"s": 62.5,
"l": 31.373
},
"oklch": {
"l": 0.3279,
"c": 0.15753,
"h": 278.6
},
"luminance": 0.03032
}Semantic roles & 50–950 ramp
primary
#2A1E82
secondary
#A8B547
accent
#E642D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F