#2A1A7E#2A1A7E
#2A1A7E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.157 H 280.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A7E |
|---|---|
| RGB | rgb(42, 26, 126) |
| HSL | hsl(250, 66%, 30%) |
| HSV | hsv(250, 79%, 49%) |
| CMYK | cmyk(66.7%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(18.96, 37.77, -53.41) |
| CIE-LCH | lch(18.96, 65.41, 305.27°) |
| OKLab | oklab(31.81% 0.0271 -0.1542) |
| OKLCH | oklch(31.81% 0.157 280) |
| XYZ | xyz(5.0889, 2.7370, 19.9947) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Royal
#0C1793
ΔE00 3.84
Indigo (survey)
#380282
ΔE00 4.29
Dark Royal Blue
#02066F
ΔE00 5.20
Navy
#000080
ΔE00 5.22
Darkblue
#00008B
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A7E #6E7E1A
analogous
#1A3C7E #2A1A7E #5C1A7E
triadic
#2A1A7E #7E2A1A #1A7E2A
tetradic
#2A1A7E #7E1A3C #6E7E1A #1A7E5C
square
#2A1A7E #7E1A3C #6E7E1A #1A7E5C
split-complementary
#2A1A7E #7E5C1A #3C7E1A
monochromatic
#080519 #19104B #2A1A7E #3B24B1 #553CD7
Accessibility & contrast
On white
13.57
#2A1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A1A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A7E
13.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A7E | 1.00 | 13.57 | 1.55 | 13.57 |
| #FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1a7e; /* rgb */ color: rgb(42, 26, 126); /* oklch */ color: oklch(31.8% 0.157 280.0);
Tailwind
colors: {
custom: {
50: '#7059a4',
500: '#2a1a7e',
950: '#000000',
},
}SCSS
$custom: #2a1a7e; $custom-light: #7059a4; $custom-dark: #000000;
JSON
{
"hex": "#2a1a7e",
"rgb": {
"r": 42,
"g": 26,
"b": 126
},
"hsl": {
"h": 249.6,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.31807,
"c": 0.15654,
"h": 280
},
"luminance": 0.02737
}Semantic roles & 50–950 ramp
primary
#2A1A7E
secondary
#A0B242
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F