#2A1886#2A1886
#2A1886 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.168 H 278.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1886 |
|---|---|
| RGB | rgb(42, 24, 134) |
| HSL | hsl(250, 70%, 31%) |
| HSV | hsv(250, 82%, 53%) |
| CMYK | cmyk(68.7%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(19.50, 41.35, -57.57) |
| CIE-LCH | lch(19.50, 70.88, 305.68°) |
| OKLab | oklab(32.45% 0.0259 -0.1663) |
| OKLCH | oklch(32.45% 0.168 278.9) |
| XYZ | xyz(5.5832, 2.8663, 22.8087) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Indigo (survey)
#380282
ΔE00 3.81
Midnight Blue
#191970
ΔE00 4.12
Darkblue
#00008B
ΔE00 4.45
Navy
#000080
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1886 #748618
analogous
#183D86 #2A1886 #611886
triadic
#2A1886 #862A18 #18862A
tetradic
#2A1886 #86183D #748618 #188661
square
#2A1886 #86183D #748618 #188661
split-complementary
#2A1886 #866118 #3D8618
monochromatic
#09051E #1A0F52 #2A1886 #3A21BA #563CDC
Accessibility & contrast
On white
13.35
#2A1886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2A1886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1886
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1886 | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1886; /* rgb */ color: rgb(42, 24, 134); /* oklch */ color: oklch(32.5% 0.168 278.9);
Tailwind
colors: {
custom: {
50: '#7259aa',
500: '#2a1886',
950: '#000000',
},
}SCSS
$custom: #2a1886; $custom-light: #7259aa; $custom-dark: #000000;
JSON
{
"hex": "#2a1886",
"rgb": {
"r": 42,
"g": 24,
"b": 134
},
"hsl": {
"h": 249.818,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.32452,
"c": 0.16828,
"h": 278.9
},
"luminance": 0.02867
}Semantic roles & 50–950 ramp
primary
#2A1886
secondary
#A6BA40
accent
#EC3BCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F