#2A1A7B#2A1A7B
#2A1A7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 280.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A7B |
|---|---|
| RGB | rgb(42, 26, 123) |
| HSL | hsl(250, 65%, 29%) |
| HSV | hsv(250, 79%, 48%) |
| CMYK | cmyk(65.9%, 78.9%, 0%, 51.8%) |
| CIE-LAB | lab(18.63, 36.80, -52.04) |
| CIE-LCH | lch(18.63, 63.73, 305.27°) |
| OKLab | oklab(31.48% 0.028 -0.1502) |
| OKLCH | oklch(31.48% 0.153 280.5) |
| XYZ | xyz(4.8983, 2.6607, 18.9905) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.73
Royal
#0C1793
ΔE00 4.26
Indigo (survey)
#380282
ΔE00 4.44
Dark Royal Blue
#02066F
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.30
Navy
#000080
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A7B #6B7B1A
analogous
#1A3B7B #2A1A7B #5B1A7B
triadic
#2A1A7B #7B2A1A #1A7B2A
tetradic
#2A1A7B #7B1A3B #6B7B1A #1A7B5B
square
#2A1A7B #7B1A3B #6B7B1A #1A7B5B
split-complementary
#2A1A7B #7B5B1A #3B7B1A
monochromatic
#090519 #190F48 #2A1A7B #3B25AE #543AD5
Accessibility & contrast
On white
13.71
#2A1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2A1A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A7B
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A7B | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2a1a7b; /* rgb */ color: rgb(42, 26, 123); /* oklch */ color: oklch(31.5% 0.153 280.5);
Tailwind
colors: {
custom: {
50: '#6f59a2',
500: '#2a1a7b',
950: '#000000',
},
}SCSS
$custom: #2a1a7b; $custom-light: #6f59a2; $custom-dark: #000000;
JSON
{
"hex": "#2a1a7b",
"rgb": {
"r": 42,
"g": 26,
"b": 123
},
"hsl": {
"h": 249.897,
"s": 65.101,
"l": 29.216
},
"oklch": {
"l": 0.31479,
"c": 0.15275,
"h": 280.5
},
"luminance": 0.02661
}Semantic roles & 50–950 ramp
primary
#2A1A7B
secondary
#9DAF42
accent
#E840CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F