#2A1A82#2A1A82
#2A1A82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 279.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A82 |
|---|---|
| RGB | rgb(42, 26, 130) |
| HSL | hsl(249, 67%, 31%) |
| HSV | hsv(249, 80%, 51%) |
| CMYK | cmyk(67.7%, 80%, 0%, 49%) |
| CIE-LAB | lab(19.40, 39.06, -55.21) |
| CIE-LCH | lch(19.40, 67.63, 305.27°) |
| OKLab | oklab(32.25% 0.026 -0.1594) |
| OKLCH | oklch(32.25% 0.162 279.3) |
| XYZ | xyz(5.3522, 2.8423, 21.3813) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.33
Midnight Blue
#191970
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.96
Navy
#000080
ΔE00 5.14
Dark Royal Blue
#02066F
ΔE00 5.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A82 #72821A
analogous
#1A3E82 #2A1A82 #5E1A82
triadic
#2A1A82 #822A1A #1A822A
tetradic
#2A1A82 #821A3E #72821A #1A825E
square
#2A1A82 #821A3E #72821A #1A825E
split-complementary
#2A1A82 #825E1A #3E821A
monochromatic
#09061C #1A104F #2A1A82 #3A24B5 #563ED8
Accessibility & contrast
On white
13.39
#2A1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2A1A82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A82
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A82 | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1a82; /* rgb */ color: rgb(42, 26, 130); /* oklch */ color: oklch(32.2% 0.162 279.3);
Tailwind
colors: {
custom: {
50: '#715aa7',
500: '#2a1a82',
950: '#000000',
},
}SCSS
$custom: #2a1a82; $custom-light: #715aa7; $custom-dark: #000000;
JSON
{
"hex": "#2a1a82",
"rgb": {
"r": 42,
"g": 26,
"b": 130
},
"hsl": {
"h": 249.231,
"s": 66.667,
"l": 30.588
},
"oklch": {
"l": 0.32249,
"c": 0.16154,
"h": 279.3
},
"luminance": 0.02843
}Semantic roles & 50–950 ramp
primary
#2A1A82
secondary
#A4B642
accent
#EA3ECF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F