#2A1A7D#2A1A7D
#2A1A7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 280.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A7D |
|---|---|
| RGB | rgb(42, 26, 125) |
| HSL | hsl(250, 66%, 30%) |
| HSV | hsv(250, 79%, 49%) |
| CMYK | cmyk(66.4%, 79.2%, 0%, 51%) |
| CIE-LAB | lab(18.85, 37.45, -52.95) |
| CIE-LCH | lch(18.85, 64.85, 305.27°) |
| OKLab | oklab(31.7% 0.0274 -0.1528) |
| OKLCH | oklch(31.7% 0.155 280.2) |
| XYZ | xyz(5.0247, 2.7113, 19.6566) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Royal
#0C1793
ΔE00 3.97
Indigo (survey)
#380282
ΔE00 4.34
Dark Royal Blue
#02066F
ΔE00 5.15
Navy
#000080
ΔE00 5.25
Darkblue
#00008B
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A7D #6D7D1A
analogous
#1A3C7D #2A1A7D #5C1A7D
triadic
#2A1A7D #7D2A1A #1A7D2A
tetradic
#2A1A7D #7D1A3C #6D7D1A #1A7D5C
square
#2A1A7D #7D1A3C #6D7D1A #1A7D5C
split-complementary
#2A1A7D #7D5C1A #3C7D1A
monochromatic
#090519 #190F4A #2A1A7D #3B25B0 #543BD6
Accessibility & contrast
On white
13.62
#2A1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A1A7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A7D
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A7D | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1a7d; /* rgb */ color: rgb(42, 26, 125); /* oklch */ color: oklch(31.7% 0.155 280.2);
Tailwind
colors: {
custom: {
50: '#7059a4',
500: '#2a1a7d',
950: '#000000',
},
}SCSS
$custom: #2a1a7d; $custom-light: #7059a4; $custom-dark: #000000;
JSON
{
"hex": "#2a1a7d",
"rgb": {
"r": 42,
"g": 26,
"b": 125
},
"hsl": {
"h": 249.697,
"s": 65.563,
"l": 29.608
},
"oklch": {
"l": 0.31698,
"c": 0.15528,
"h": 280.2
},
"luminance": 0.02712
}Semantic roles & 50–950 ramp
primary
#2A1A7D
secondary
#9FB142
accent
#E93FCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F