#2A1F86#2A1F86
#2A1F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.162 H 277.8°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F86 |
|---|---|
| RGB | rgb(42, 31, 134) |
| HSL | hsl(246, 62%, 32%) |
| HSV | hsv(246, 77%, 53%) |
| CMYK | cmyk(68.7%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.80, 37.62, -55.42) |
| CIE-LCH | lch(20.80, 66.98, 304.17°) |
| OKLab | oklab(33.36% 0.022 -0.1601) |
| OKLCH | oklch(33.36% 0.162 277.8) |
| XYZ | xyz(5.7465, 3.1930, 22.8631) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.97
Indigo (survey)
#380282
ΔE00 5.24
Darkblue
#00008B
ΔE00 5.76
Cobalt Blue
#030AA7
ΔE00 5.79
Navy
#000080
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F86 #7B861F
analogous
#1F4786 #2A1F86 #5E1F86
triadic
#2A1F86 #862A1F #1F862A
tetradic
#2A1F86 #861F47 #7B861F #1F865E
square
#2A1F86 #861F47 #7B861F #1F865E
split-complementary
#2A1F86 #865E1F #47861F
monochromatic
#0B0823 #1A1454 #2A1F86 #3A2AB8 #594AD5
Accessibility & contrast
On white
12.82
#2A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2A1F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F86
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F86 | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a1f86; /* rgb */ color: rgb(42, 31, 134); /* oklch */ color: oklch(33.4% 0.162 277.8);
Tailwind
colors: {
custom: {
50: '#725daa',
500: '#2a1f86',
950: '#000000',
},
}SCSS
$custom: #2a1f86; $custom-light: #725daa; $custom-dark: #000000;
JSON
{
"hex": "#2a1f86",
"rgb": {
"r": 42,
"g": 31,
"b": 134
},
"hsl": {
"h": 246.408,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33363,
"c": 0.1616,
"h": 277.8
},
"luminance": 0.03193
}Semantic roles & 50–950 ramp
primary
#2A1F86
secondary
#ACB849
accent
#E542D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F