#2A1EB3#2A1EB3
#2A1EB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.216 H 272.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1EB3 |
|---|---|
| RGB | rgb(42, 30, 179) |
| HSL | hsl(245, 71%, 41%) |
| HSV | hsv(245, 83%, 70%) |
| CMYK | cmyk(76.5%, 83.2%, 0%, 29.8%) |
| CIE-LAB | lab(25.79, 52.36, -74.73) |
| CIE-LCH | lch(25.79, 91.25, 305.02°) |
| OKLab | oklab(38.35% 0.0109 -0.2162) |
| OKLCH | oklch(38.35% 0.216 272.9) |
| XYZ | xyz(9.5531, 4.6744, 43.0379) |
| Luminance | 0.0467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.79
True Blue
#010FCC
ΔE00 3.28
Ultramarine
#2000B1
ΔE00 3.62
Mediumblue
#0000CD
ΔE00 3.92
Cobalt Blue
#030AA7
ΔE00 4.09
Royal Blue (survey)
#0504AA
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1EB3 #A7B31E
analogous
#1E5CB3 #2A1EB3 #741EB3
triadic
#2A1EB3 #B32A1E #1EB32A
tetradic
#2A1EB3 #B31E5C #A7B31E #1EB374
square
#2A1EB3 #B31E5C #A7B31E #1EB374
split-complementary
#2A1EB3 #B3741E #5CB31E
monochromatic
#110C4A #1E157F #2A1EB3 #3F32DD #7066E5
Accessibility & contrast
On white
10.85
#2A1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2A1EB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1EB3
10.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1EB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1EB3 | 1.00 | 10.85 | 1.94 | 10.85 |
| #FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2a1eb3; /* rgb */ color: rgb(42, 30, 179); /* oklch */ color: oklch(38.3% 0.216 272.9);
Tailwind
colors: {
custom: {
50: '#7c5fcb',
500: '#2a1eb3',
950: '#000000',
},
}SCSS
$custom: #2a1eb3; $custom-light: #7c5fcb; $custom-dark: #000000;
JSON
{
"hex": "#2a1eb3",
"rgb": {
"r": 42,
"g": 30,
"b": 179
},
"hsl": {
"h": 244.832,
"s": 71.292,
"l": 40.98
},
"oklch": {
"l": 0.38347,
"c": 0.21644,
"h": 272.9
},
"luminance": 0.04675
}Semantic roles & 50–950 ramp
primary
#2A1EB3
secondary
#C2CB62
accent
#EE3AE0
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982