#2A1E7A#2A1E7A
#2A1E7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.147 H 279.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1E7A |
|---|---|
| RGB | rgb(42, 30, 122) |
| HSL | hsl(248, 61%, 30%) |
| HSV | hsv(248, 75%, 48%) |
| CMYK | cmyk(65.6%, 75.4%, 0%, 52.2%) |
| CIE-LAB | lab(19.33, 34.19, -50.24) |
| CIE-LCH | lch(19.33, 60.77, 304.24°) |
| OKLab | oklab(31.94% 0.0254 -0.145) |
| OKLCH | oklch(31.94% 0.147 279.9) |
| XYZ | xyz(4.9309, 2.8255, 18.6941) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Royal
#0C1793
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 5.41
Dark Royal Blue
#02066F
ΔE00 5.76
Deep Blue
#040273
ΔE00 6.11
Navy
#000080
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1E7A #6E7A1E
analogous
#1E407A #2A1E7A #581E7A
triadic
#2A1E7A #7A2A1E #1E7A2A
tetradic
#2A1E7A #7A1E40 #6E7A1E #1E7A58
square
#2A1E7A #7A1E40 #6E7A1E #1E7A58
split-complementary
#2A1E7A #7A581E #407A1E
monochromatic
#080619 #191249 #2A1E7A #3B2AAB #5542D0
Accessibility & contrast
On white
13.42
#2A1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2A1E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1E7A
13.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1E7A | 1.00 | 13.42 | 1.57 | 13.42 |
| #FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1e7a; /* rgb */ color: rgb(42, 30, 122); /* oklch */ color: oklch(31.9% 0.147 279.9);
Tailwind
colors: {
custom: {
50: '#6f5ba1',
500: '#2a1e7a',
950: '#000000',
},
}SCSS
$custom: #2a1e7a; $custom-light: #6f5ba1; $custom-dark: #000000;
JSON
{
"hex": "#2a1e7a",
"rgb": {
"r": 42,
"g": 30,
"b": 122
},
"hsl": {
"h": 247.826,
"s": 60.526,
"l": 29.804
},
"oklch": {
"l": 0.31942,
"c": 0.14718,
"h": 279.9
},
"luminance": 0.02826
}Semantic roles & 50–950 ramp
primary
#2A1E7A
secondary
#A0AE46
accent
#E444CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F