#2A1FAD#2A1FAD
#2A1FAD is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.209 H 273.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1FAD |
|---|---|
| RGB | rgb(42, 31, 173) |
| HSL | hsl(245, 70%, 40%) |
| HSV | hsv(245, 82%, 68%) |
| CMYK | cmyk(75.7%, 82.1%, 0%, 32.2%) |
| CIE-LAB | lab(25.22, 50.08, -72.07) |
| CIE-LCH | lch(25.22, 87.76, 304.80°) |
| OKLab | oklab(37.75% 0.0122 -0.2085) |
| OKLCH | oklch(37.75% 0.209 273.3) |
| XYZ | xyz(8.9851, 4.4884, 39.9199) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.03
Ultramarine
#2000B1
ΔE00 3.71
Cobalt Blue
#030AA7
ΔE00 3.86
True Blue
#010FCC
ΔE00 3.97
Royal Blue (survey)
#0504AA
ΔE00 4.13
Mediumblue
#0000CD
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1FAD #A2AD1F
analogous
#1F5BAD #2A1FAD #711FAD
triadic
#2A1FAD #AD2A1F #1FAD2A
tetradic
#2A1FAD #AD1F5B #A2AD1F #1FAD71
square
#2A1FAD #AD1F5B #A2AD1F #1FAD71
split-complementary
#2A1FAD #AD711F #5BAD1F
monochromatic
#110C45 #1D1679 #2A1FAD #3D2FDA #6D63E3
Accessibility & contrast
On white
11.07
#2A1FAD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#2A1FAD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1FAD
11.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1FAD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1FAD | 1.00 | 11.07 | 1.90 | 11.07 |
| #FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a1fad; /* rgb */ color: rgb(42, 31, 173); /* oklch */ color: oklch(37.8% 0.209 273.3);
Tailwind
colors: {
custom: {
50: '#7b5fc7',
500: '#2a1fad',
950: '#000000',
},
}SCSS
$custom: #2a1fad; $custom-light: #7b5fc7; $custom-dark: #000000;
JSON
{
"hex": "#2a1fad",
"rgb": {
"r": 42,
"g": 31,
"b": 173
},
"hsl": {
"h": 244.648,
"s": 69.608,
"l": 40
},
"oklch": {
"l": 0.37752,
"c": 0.20882,
"h": 273.3
},
"luminance": 0.04489
}Semantic roles & 50–950 ramp
primary
#2A1FAD
secondary
#C0C860
accent
#EC3BDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982