#2A1FAB#2A1FAB
#2A1FAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.206 H 273.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1FAB |
|---|---|
| RGB | rgb(42, 31, 171) |
| HSL | hsl(245, 69%, 40%) |
| HSV | hsv(245, 82%, 67%) |
| CMYK | cmyk(75.4%, 81.9%, 0%, 32.9%) |
| CIE-LAB | lab(24.99, 49.46, -71.26) |
| CIE-LCH | lch(24.99, 86.74, 304.77°) |
| OKLab | oklab(37.52% 0.0127 -0.2061) |
| OKLCH | oklch(37.52% 0.207 273.5) |
| XYZ | xyz(8.7931, 4.4116, 38.9083) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.14
Ultramarine
#2000B1
ΔE00 3.72
Cobalt Blue
#030AA7
ΔE00 3.77
Royal Blue (survey)
#0504AA
ΔE00 4.07
True Blue
#010FCC
ΔE00 4.19
Royal
#0C1793
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1FAB #A0AB1F
analogous
#1F5AAB #2A1FAB #701FAB
triadic
#2A1FAB #AB2A1F #1FAB2A
tetradic
#2A1FAB #AB1F5A #A0AB1F #1FAB70
square
#2A1FAB #AB1F5A #A0AB1F #1FAB70
split-complementary
#2A1FAB #AB701F #5AAB1F
monochromatic
#110C43 #1D1677 #2A1FAB #3C2ED9 #6C62E3
Accessibility & contrast
On white
11.16
#2A1FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#2A1FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1FAB
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1FAB | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a1fab; /* rgb */ color: rgb(42, 31, 171); /* oklch */ color: oklch(37.5% 0.206 273.5);
Tailwind
colors: {
custom: {
50: '#7a5fc5',
500: '#2a1fab',
950: '#000000',
},
}SCSS
$custom: #2a1fab; $custom-light: #7a5fc5; $custom-dark: #000000;
JSON
{
"hex": "#2a1fab",
"rgb": {
"r": 42,
"g": 31,
"b": 171
},
"hsl": {
"h": 244.714,
"s": 69.307,
"l": 39.608
},
"oklch": {
"l": 0.3752,
"c": 0.2065,
"h": 273.5
},
"luminance": 0.04412
}Semantic roles & 50–950 ramp
primary
#2A1FAB
secondary
#BFC75E
accent
#EC3CDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982