#2A1F87#2A1F87
#2A1F87 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.163 H 277.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F87 |
|---|---|
| RGB | rgb(42, 31, 135) |
| HSL | hsl(246, 63%, 33%) |
| HSV | hsv(246, 77%, 53%) |
| CMYK | cmyk(68.9%, 77%, 0%, 47.1%) |
| CIE-LAB | lab(20.91, 37.95, -55.88) |
| CIE-LCH | lch(20.91, 67.55, 304.18°) |
| OKLab | oklab(33.47% 0.0217 -0.1614) |
| OKLCH | oklch(33.47% 0.163 277.7) |
| XYZ | xyz(5.8166, 3.2210, 23.2322) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.15
Midnight Blue
#191970
ΔE00 4.10
Indigo (survey)
#380282
ΔE00 5.24
Cobalt Blue
#030AA7
ΔE00 5.66
Darkblue
#00008B
ΔE00 5.73
Navy
#000080
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F87 #7C871F
analogous
#1F4887 #2A1F87 #5E1F87
triadic
#2A1F87 #872A1F #1F872A
tetradic
#2A1F87 #871F48 #7C871F #1F875E
square
#2A1F87 #871F48 #7C871F #1F875E
split-complementary
#2A1F87 #875E1F #48871F
monochromatic
#0B0823 #1B1455 #2A1F87 #392AB9 #594BD6
Accessibility & contrast
On white
12.77
#2A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2A1F87 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F87
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F87 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F87 | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a1f87; /* rgb */ color: rgb(42, 31, 135); /* oklch */ color: oklch(33.5% 0.163 277.7);
Tailwind
colors: {
custom: {
50: '#725dab',
500: '#2a1f87',
950: '#000000',
},
}SCSS
$custom: #2a1f87; $custom-light: #725dab; $custom-dark: #000000;
JSON
{
"hex": "#2a1f87",
"rgb": {
"r": 42,
"g": 31,
"b": 135
},
"hsl": {
"h": 246.346,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.3347,
"c": 0.16287,
"h": 277.7
},
"luminance": 0.03221
}Semantic roles & 50–950 ramp
primary
#2A1F87
secondary
#ADB84A
accent
#E642D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F