#2A1C79#2A1C79
#2A1C79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.148 H 280.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1C79 |
|---|---|
| RGB | rgb(42, 28, 121) |
| HSL | hsl(249, 62%, 29%) |
| HSV | hsv(249, 77%, 47%) |
| CMYK | cmyk(65.3%, 76.9%, 0%, 52.5%) |
| CIE-LAB | lab(18.81, 35.02, -50.46) |
| CIE-LCH | lch(18.81, 61.42, 304.76°) |
| OKLab | oklab(31.54% 0.0271 -0.1456) |
| OKLCH | oklch(31.54% 0.148 280.5) |
| XYZ | xyz(4.8202, 2.7029, 18.3531) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.49
Royal
#0C1793
ΔE00 4.65
Indigo (survey)
#380282
ΔE00 5.00
Dark Royal Blue
#02066F
ΔE00 5.37
Deep Blue
#040273
ΔE00 5.69
Navy
#000080
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1C79 #6B791C
analogous
#1C3D79 #2A1C79 #591C79
triadic
#2A1C79 #792A1C #1C792A
tetradic
#2A1C79 #791C3D #6B791C #1C7959
square
#2A1C79 #791C3D #6B791C #1C7959
split-complementary
#2A1C79 #79591C #3D791C
monochromatic
#090619 #191047 #2A1C79 #3B28AB #543DD2
Accessibility & contrast
On white
13.63
#2A1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A1C79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1C79
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1C79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1C79 | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1c79; /* rgb */ color: rgb(42, 28, 121); /* oklch */ color: oklch(31.5% 0.148 280.5);
Tailwind
colors: {
custom: {
50: '#6f5aa1',
500: '#2a1c79',
950: '#000000',
},
}SCSS
$custom: #2a1c79; $custom-light: #6f5aa1; $custom-dark: #000000;
JSON
{
"hex": "#2a1c79",
"rgb": {
"r": 42,
"g": 28,
"b": 121
},
"hsl": {
"h": 249.032,
"s": 62.416,
"l": 29.216
},
"oklch": {
"l": 0.31543,
"c": 0.14808,
"h": 280.5
},
"luminance": 0.02703
}Semantic roles & 50–950 ramp
primary
#2A1C79
secondary
#9DAD44
accent
#E542CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F