#2A1B7B#2A1B7B
#2A1B7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.152 H 280.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B7B |
|---|---|
| RGB | rgb(42, 27, 123) |
| HSL | hsl(249, 64%, 29%) |
| HSV | hsv(249, 78%, 48%) |
| CMYK | cmyk(65.9%, 78%, 0%, 51.8%) |
| CIE-LAB | lab(18.82, 36.25, -51.72) |
| CIE-LCH | lch(18.82, 63.15, 305.03°) |
| OKLab | oklab(31.62% 0.0273 -0.1492) |
| OKLCH | oklch(31.62% 0.152 280.4) |
| XYZ | xyz(4.9208, 2.7058, 18.9980) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.69
Royal
#0C1793
ΔE00 4.30
Indigo (survey)
#380282
ΔE00 4.65
Dark Royal Blue
#02066F
ΔE00 5.24
Deep Blue
#040273
ΔE00 5.49
Navy
#000080
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B7B #6C7B1B
analogous
#1B3C7B #2A1B7B #5A1B7B
triadic
#2A1B7B #7B2A1B #1B7B2A
tetradic
#2A1B7B #7B1B3C #6C7B1B #1B7B5A
square
#2A1B7B #7B1B3C #6C7B1B #1B7B5A
split-complementary
#2A1B7B #7B5A1B #3C7B1B
monochromatic
#090619 #191049 #2A1B7B #3B26AD #543CD4
Accessibility & contrast
On white
13.63
#2A1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A1B7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B7B
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B7B | 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)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1b7b; /* rgb */ color: rgb(42, 27, 123); /* oklch */ color: oklch(31.6% 0.152 280.4);
Tailwind
colors: {
custom: {
50: '#6f5aa2',
500: '#2a1b7b',
950: '#000000',
},
}SCSS
$custom: #2a1b7b; $custom-light: #6f5aa2; $custom-dark: #000000;
JSON
{
"hex": "#2a1b7b",
"rgb": {
"r": 42,
"g": 27,
"b": 123
},
"hsl": {
"h": 249.375,
"s": 64,
"l": 29.412
},
"oklch": {
"l": 0.31616,
"c": 0.15171,
"h": 280.4
},
"luminance": 0.02706
}Semantic roles & 50–950 ramp
primary
#2A1B7B
secondary
#9EAF43
accent
#E741CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F