#2A1FB3#2A1FB3
#2A1FB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.216 H 272.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1FB3 |
|---|---|
| RGB | rgb(42, 31, 179) |
| HSL | hsl(244, 70%, 41%) |
| HSV | hsv(244, 83%, 70%) |
| CMYK | cmyk(76.5%, 82.7%, 0%, 29.8%) |
| CIE-LAB | lab(25.94, 51.91, -74.48) |
| CIE-LCH | lch(25.94, 90.78, 304.88°) |
| OKLab | oklab(38.45% 0.0106 -0.2154) |
| OKLCH | oklch(38.45% 0.216 272.8) |
| XYZ | xyz(9.5788, 4.7259, 43.0464) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.90
True Blue
#010FCC
ΔE00 3.35
Ultramarine
#2000B1
ΔE00 3.79
Mediumblue
#0000CD
ΔE00 4.03
Cobalt Blue
#030AA7
ΔE00 4.22
Royal Blue (survey)
#0504AA
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1FB3 #A8B31F
analogous
#1F5EB3 #2A1FB3 #741FB3
triadic
#2A1FB3 #B32A1F #1FB32A
tetradic
#2A1FB3 #B31F5E #A8B31F #1FB374
square
#2A1FB3 #B31F5E #A8B31F #1FB374
split-complementary
#2A1FB3 #B3741F #5EB31F
monochromatic
#120D4B #1E167F #2A1FB3 #4033DC #7168E5
Accessibility & contrast
On white
10.79
#2A1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2A1FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1FB3
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1FB3 | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a1fb3; /* rgb */ color: rgb(42, 31, 179); /* oklch */ color: oklch(38.5% 0.216 272.8);
Tailwind
colors: {
custom: {
50: '#7c60cb',
500: '#2a1fb3',
950: '#000000',
},
}SCSS
$custom: #2a1fb3; $custom-light: #7c60cb; $custom-dark: #000000;
JSON
{
"hex": "#2a1fb3",
"rgb": {
"r": 42,
"g": 31,
"b": 179
},
"hsl": {
"h": 244.459,
"s": 70.476,
"l": 41.176
},
"oklch": {
"l": 0.38452,
"c": 0.21571,
"h": 272.8
},
"luminance": 0.04727
}Semantic roles & 50–950 ramp
primary
#2A1FB3
secondary
#C3CA64
accent
#ED3BE0
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0B0514
muted
#7C7982