#2A1D79#2A1D79
#2A1D79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.147 H 280.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1D79 |
|---|---|
| RGB | rgb(42, 29, 121) |
| HSL | hsl(248, 61%, 29%) |
| HSV | hsv(248, 76%, 47%) |
| CMYK | cmyk(65.3%, 76%, 0%, 52.5%) |
| CIE-LAB | lab(19.02, 34.44, -50.12) |
| CIE-LCH | lch(19.02, 60.81, 304.50°) |
| OKLab | oklab(31.69% 0.0264 -0.1446) |
| OKLCH | oklch(31.69% 0.147 280.3) |
| XYZ | xyz(4.8443, 2.7511, 18.3612) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.49
Royal
#0C1793
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 5.23
Dark Royal Blue
#02066F
ΔE00 5.56
Deep Blue
#040273
ΔE00 5.90
Navy
#000080
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1D79 #6C791D
analogous
#1D3E79 #2A1D79 #581D79
triadic
#2A1D79 #792A1D #1D792A
tetradic
#2A1D79 #791D3E #6C791D #1D7958
square
#2A1D79 #791D3E #6C791D #1D7958
split-complementary
#2A1D79 #79581D #3E791D
monochromatic
#090619 #191148 #2A1D79 #3B29AA #543FD1
Accessibility & contrast
On white
13.55
#2A1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A1D79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1D79
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1D79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1D79 | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1d79; /* rgb */ color: rgb(42, 29, 121); /* oklch */ color: oklch(31.7% 0.147 280.3);
Tailwind
colors: {
custom: {
50: '#6f5ba1',
500: '#2a1d79',
950: '#000000',
},
}SCSS
$custom: #2a1d79; $custom-light: #6f5ba1; $custom-dark: #000000;
JSON
{
"hex": "#2a1d79",
"rgb": {
"r": 42,
"g": 29,
"b": 121
},
"hsl": {
"h": 248.478,
"s": 61.333,
"l": 29.412
},
"oklch": {
"l": 0.31689,
"c": 0.14699,
"h": 280.3
},
"luminance": 0.02751
}Semantic roles & 50–950 ramp
primary
#2A1D79
secondary
#9EAD45
accent
#E443CE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F