#2A1C87#2A1C87
#2A1C87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 278.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1C87 |
|---|---|
| RGB | rgb(42, 28, 135) |
| HSL | hsl(248, 66%, 32%) |
| HSV | hsv(248, 79%, 53%) |
| CMYK | cmyk(68.9%, 79.3%, 0%, 47.1%) |
| CIE-LAB | lab(20.33, 39.60, -56.83) |
| CIE-LCH | lch(20.33, 69.27, 304.87°) |
| OKLab | oklab(33.06% 0.0235 -0.1642) |
| OKLCH | oklch(33.06% 0.166 278.1) |
| XYZ | xyz(5.7419, 3.0715, 23.2072) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.88
Midnight Blue
#191970
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.59
Darkblue
#00008B
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.29
Navy
#000080
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1C87 #79871C
analogous
#1C4487 #2A1C87 #5F1C87
triadic
#2A1C87 #872A1C #1C872A
tetradic
#2A1C87 #871C44 #79871C #1C875F
square
#2A1C87 #871C44 #79871C #1C875F
split-complementary
#2A1C87 #875F1C #44871C
monochromatic
#0A0722 #1A1154 #2A1C87 #3A27BA #5845D8
Accessibility & contrast
On white
13.01
#2A1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2A1C87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1C87
13.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1C87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1C87 | 1.00 | 13.01 | 1.61 | 13.01 |
| #FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1c87; /* rgb */ color: rgb(42, 28, 135); /* oklch */ color: oklch(33.1% 0.166 278.1);
Tailwind
colors: {
custom: {
50: '#725bab',
500: '#2a1c87',
950: '#000000',
},
}SCSS
$custom: #2a1c87; $custom-light: #725bab; $custom-dark: #000000;
JSON
{
"hex": "#2a1c87",
"rgb": {
"r": 42,
"g": 28,
"b": 135
},
"hsl": {
"h": 247.85,
"s": 65.644,
"l": 31.961
},
"oklch": {
"l": 0.33063,
"c": 0.16584,
"h": 278.1
},
"luminance": 0.03072
}Semantic roles & 50–950 ramp
primary
#2A1C87
secondary
#ABBA45
accent
#E93FD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F