#2A1FAC#2A1FAC
#2A1FAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.208 H 273.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1FAC |
|---|---|
| RGB | rgb(42, 31, 172) |
| HSL | hsl(245, 69%, 40%) |
| HSV | hsv(245, 82%, 67%) |
| CMYK | cmyk(75.6%, 82%, 0%, 32.5%) |
| CIE-LAB | lab(25.11, 49.77, -71.66) |
| CIE-LCH | lch(25.11, 87.25, 304.78°) |
| OKLab | oklab(37.64% 0.0124 -0.2073) |
| OKLCH | oklch(37.64% 0.208 273.4) |
| XYZ | xyz(8.8887, 4.4498, 39.4122) |
| Luminance | 0.0445 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.09
Ultramarine
#2000B1
ΔE00 3.71
Cobalt Blue
#030AA7
ΔE00 3.81
True Blue
#010FCC
ΔE00 4.08
Royal Blue (survey)
#0504AA
ΔE00 4.09
Royal
#0C1793
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1FAC #A1AC1F
analogous
#1F5AAC #2A1FAC #711FAC
triadic
#2A1FAC #AC2A1F #1FAC2A
tetradic
#2A1FAC #AC1F5A #A1AC1F #1FAC71
square
#2A1FAC #AC1F5A #A1AC1F #1FAC71
split-complementary
#2A1FAC #AC711F #5AAC1F
monochromatic
#110C44 #1D1678 #2A1FAC #3C2FD9 #6D63E3
Accessibility & contrast
On white
11.11
#2A1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#2A1FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1FAC
11.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1FAC | 1.00 | 11.11 | 1.89 | 11.11 |
| #FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2a1fac; /* rgb */ color: rgb(42, 31, 172); /* oklch */ color: oklch(37.6% 0.208 273.4);
Tailwind
colors: {
custom: {
50: '#7a5fc6',
500: '#2a1fac',
950: '#000000',
},
}SCSS
$custom: #2a1fac; $custom-light: #7a5fc6; $custom-dark: #000000;
JSON
{
"hex": "#2a1fac",
"rgb": {
"r": 42,
"g": 31,
"b": 172
},
"hsl": {
"h": 244.681,
"s": 69.458,
"l": 39.804
},
"oklch": {
"l": 0.37636,
"c": 0.20766,
"h": 273.4
},
"luminance": 0.04451
}Semantic roles & 50–950 ramp
primary
#2A1FAC
secondary
#C0C85F
accent
#EC3CDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982