#2A1D7E#2A1D7E
#2A1D7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 279.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1D7E |
|---|---|
| RGB | rgb(42, 29, 126) |
| HSL | hsl(248, 63%, 30%) |
| HSV | hsv(248, 77%, 49%) |
| CMYK | cmyk(66.7%, 77%, 0%, 50.6%) |
| CIE-LAB | lab(19.54, 36.10, -52.44) |
| CIE-LCH | lch(19.54, 63.67, 304.55°) |
| OKLab | oklab(32.22% 0.0252 -0.1514) |
| OKLCH | oklch(32.22% 0.153 279.4) |
| XYZ | xyz(5.1589, 2.8769, 20.0181) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.97
Royal
#0C1793
ΔE00 4.01
Indigo (survey)
#380282
ΔE00 4.96
Dark Royal Blue
#02066F
ΔE00 5.67
Darkblue
#00008B
ΔE00 5.79
Navy
#000080
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1D7E #717E1D
analogous
#1D407E #2A1D7E #5A1D7E
triadic
#2A1D7E #7E2A1D #1D7E2A
tetradic
#2A1D7E #7E1D40 #717E1D #1D7E5A
square
#2A1D7E #7E1D40 #717E1D #1D7E5A
split-complementary
#2A1D7E #7E5A1D #407E1D
monochromatic
#09061B #19124C #2A1D7E #3B28B0 #5542D3
Accessibility & contrast
On white
13.33
#2A1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2A1D7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1D7E
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1D7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1D7E | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1d7e; /* rgb */ color: rgb(42, 29, 126); /* oklch */ color: oklch(32.2% 0.153 279.4);
Tailwind
colors: {
custom: {
50: '#705ba4',
500: '#2a1d7e',
950: '#000000',
},
}SCSS
$custom: #2a1d7e; $custom-light: #705ba4; $custom-dark: #000000;
JSON
{
"hex": "#2a1d7e",
"rgb": {
"r": 42,
"g": 29,
"b": 126
},
"hsl": {
"h": 248.041,
"s": 62.581,
"l": 30.392
},
"oklch": {
"l": 0.32219,
"c": 0.15346,
"h": 279.4
},
"luminance": 0.02877
}Semantic roles & 50–950 ramp
primary
#2A1D7E
secondary
#A3B145
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F