#2A1887#2A1887
#2A1887 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.170 H 278.7°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1887 |
|---|---|
| RGB | rgb(42, 24, 135) |
| HSL | hsl(250, 70%, 31%) |
| HSV | hsv(250, 82%, 53%) |
| CMYK | cmyk(68.9%, 82.2%, 0%, 47.1%) |
| CIE-LAB | lab(19.62, 41.66, -58.01) |
| CIE-LCH | lch(19.62, 71.42, 305.68°) |
| OKLab | oklab(32.57% 0.0256 -0.1675) |
| OKLCH | oklch(32.57% 0.17 278.7) |
| XYZ | xyz(5.6532, 2.8943, 23.1777) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 3.83
Midnight Blue
#191970
ΔE00 4.24
Darkblue
#00008B
ΔE00 4.42
Navy
#000080
ΔE00 4.84
Cobalt Blue
#030AA7
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1887 #758718
analogous
#183D87 #2A1887 #611887
triadic
#2A1887 #872A18 #18872A
tetradic
#2A1887 #87183D #758718 #188761
square
#2A1887 #87183D #758718 #188761
split-complementary
#2A1887 #876118 #3D8718
monochromatic
#0A061F #1A0F53 #2A1887 #3A21BB #573DDC
Accessibility & contrast
On white
13.30
#2A1887 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2A1887 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1887
13.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1887 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1887 | 1.00 | 13.30 | 1.58 | 13.30 |
| #FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1887; /* rgb */ color: rgb(42, 24, 135); /* oklch */ color: oklch(32.6% 0.170 278.7);
Tailwind
colors: {
custom: {
50: '#7259ab',
500: '#2a1887',
950: '#000000',
},
}SCSS
$custom: #2a1887; $custom-light: #7259ab; $custom-dark: #000000;
JSON
{
"hex": "#2a1887",
"rgb": {
"r": 42,
"g": 24,
"b": 135
},
"hsl": {
"h": 249.73,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.32566,
"c": 0.1695,
"h": 278.7
},
"luminance": 0.02895
}Semantic roles & 50–950 ramp
primary
#2A1887
secondary
#A7BB40
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F