#2A1B7A#2A1B7A
#2A1B7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 280.6°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B7A |
|---|---|
| RGB | rgb(42, 27, 122) |
| HSL | hsl(249, 64%, 29%) |
| HSV | hsv(249, 78%, 48%) |
| CMYK | cmyk(65.6%, 77.9%, 0%, 52.2%) |
| CIE-LAB | lab(18.72, 35.92, -51.25) |
| CIE-LCH | lch(18.72, 62.59, 305.02°) |
| OKLab | oklab(31.51% 0.0276 -0.1479) |
| OKLCH | oklch(31.51% 0.15 280.6) |
| XYZ | xyz(4.8585, 2.6809, 18.6700) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Royal
#0C1793
ΔE00 4.44
Indigo (survey)
#380282
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 5.21
Deep Blue
#040273
ΔE00 5.49
Navy
#000080
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B7A #6B7A1B
analogous
#1B3C7A #2A1B7A #5A1B7A
triadic
#2A1B7A #7A2A1B #1B7A2A
tetradic
#2A1B7A #7A1B3C #6B7A1B #1B7A5A
square
#2A1B7A #7A1B3C #6B7A1B #1B7A5A
split-complementary
#2A1B7A #7A5A1B #3C7A1B
monochromatic
#090619 #191048 #2A1B7A #3B26AC #543CD4
Accessibility & contrast
On white
13.67
#2A1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A1B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B7A
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B7A | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1b7a; /* rgb */ color: rgb(42, 27, 122); /* oklch */ color: oklch(31.5% 0.150 280.6);
Tailwind
colors: {
custom: {
50: '#6f5aa1',
500: '#2a1b7a',
950: '#000000',
},
}SCSS
$custom: #2a1b7a; $custom-light: #6f5aa1; $custom-dark: #000000;
JSON
{
"hex": "#2a1b7a",
"rgb": {
"r": 42,
"g": 27,
"b": 122
},
"hsl": {
"h": 249.474,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.31508,
"c": 0.15043,
"h": 280.6
},
"luminance": 0.02681
}Semantic roles & 50–950 ramp
primary
#2A1B7A
secondary
#9DAE43
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F