#2A1B7D#2A1B7D
#2A1B7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.154 H 280.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B7D |
|---|---|
| RGB | rgb(42, 27, 125) |
| HSL | hsl(249, 64%, 30%) |
| HSV | hsv(249, 78%, 49%) |
| CMYK | cmyk(66.4%, 78.4%, 0%, 51%) |
| CIE-LAB | lab(19.04, 36.90, -52.63) |
| CIE-LCH | lch(19.04, 64.28, 305.03°) |
| OKLab | oklab(31.83% 0.0268 -0.1519) |
| OKLCH | oklch(31.83% 0.154 280) |
| XYZ | xyz(5.0473, 2.7564, 19.6641) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Royal
#0C1793
ΔE00 4.02
Indigo (survey)
#380282
ΔE00 4.55
Dark Royal Blue
#02066F
ΔE00 5.30
Navy
#000080
ΔE00 5.44
Darkblue
#00008B
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B7D #6E7D1B
analogous
#1B3D7D #2A1B7D #5B1B7D
triadic
#2A1B7D #7D2A1B #1B7D2A
tetradic
#2A1B7D #7D1B3D #6E7D1B #1B7D5B
square
#2A1B7D #7D1B3D #6E7D1B #1B7D5B
split-complementary
#2A1B7D #7D5B1B #3D7D1B
monochromatic
#080519 #19104B #2A1B7D #3B26AF #553DD5
Accessibility & contrast
On white
13.54
#2A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A1B7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B7D
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B7D | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1b7d; /* rgb */ color: rgb(42, 27, 125); /* oklch */ color: oklch(31.8% 0.154 280.0);
Tailwind
colors: {
custom: {
50: '#705aa4',
500: '#2a1b7d',
950: '#000000',
},
}SCSS
$custom: #2a1b7d; $custom-light: #705aa4; $custom-dark: #000000;
JSON
{
"hex": "#2a1b7d",
"rgb": {
"r": 42,
"g": 27,
"b": 125
},
"hsl": {
"h": 249.184,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.31832,
"c": 0.15427,
"h": 280
},
"luminance": 0.02757
}Semantic roles & 50–950 ramp
primary
#2A1B7D
secondary
#A0B143
accent
#E740CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F