#2A1E7E#2A1E7E
#2A1E7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 279.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1E7E |
|---|---|
| RGB | rgb(42, 30, 126) |
| HSL | hsl(248, 62%, 31%) |
| HSV | hsv(248, 76%, 49%) |
| CMYK | cmyk(66.7%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(19.75, 35.53, -52.11) |
| CIE-LCH | lch(19.75, 63.07, 304.29°) |
| OKLab | oklab(32.36% 0.0245 -0.1504) |
| OKLCH | oklch(32.36% 0.152 279.3) |
| XYZ | xyz(5.1838, 2.9267, 20.0264) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.98
Royal
#0C1793
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 5.19
Dark Royal Blue
#02066F
ΔE00 5.85
Darkblue
#00008B
ΔE00 6.00
Navy
#000080
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1E7E #727E1E
analogous
#1E427E #2A1E7E #5A1E7E
triadic
#2A1E7E #7E2A1E #1E7E2A
tetradic
#2A1E7E #7E1E42 #727E1E #1E7E5A
square
#2A1E7E #7E1E42 #727E1E #1E7E5A
split-complementary
#2A1E7E #7E5A1E #427E1E
monochromatic
#09061B #1A124D #2A1E7E #3A2AAF #5644D2
Accessibility & contrast
On white
13.25
#2A1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2A1E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1E7E
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1E7E | 1.00 | 13.25 | 1.59 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1e7e; /* rgb */ color: rgb(42, 30, 126); /* oklch */ color: oklch(32.4% 0.152 279.3);
Tailwind
colors: {
custom: {
50: '#705ca4',
500: '#2a1e7e',
950: '#000000',
},
}SCSS
$custom: #2a1e7e; $custom-light: #705ca4; $custom-dark: #000000;
JSON
{
"hex": "#2a1e7e",
"rgb": {
"r": 42,
"g": 30,
"b": 126
},
"hsl": {
"h": 247.5,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.32364,
"c": 0.15238,
"h": 279.3
},
"luminance": 0.02927
}Semantic roles & 50–950 ramp
primary
#2A1E7E
secondary
#A4B147
accent
#E543D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F