#2A17B3#2A17B3
#2A17B3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.221 H 273.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).
Color values
| HEX | #2A17B3 |
|---|---|
| RGB | rgb(42, 23, 179) |
| HSL | hsl(247, 77%, 40%) |
| HSV | hsv(247, 87%, 70%) |
| CMYK | cmyk(76.5%, 87.2%, 0%, 29.8%) |
| CIE-LAB | lab(24.82, 55.22, -76.33) |
| CIE-LCH | lch(24.82, 94.21, 305.88°) |
| OKLab | oklab(37.69% 0.0125 -0.2207) |
| OKLCH | oklch(37.69% 0.221 273.3) |
| XYZ | xyz(9.3952, 4.3587, 42.9852) |
| Luminance | 0.0436 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.48
Ultramarine
#2000B1
ΔE00 2.55
True Blue
#010FCC
ΔE00 3.00
Mediumblue
#0000CD
ΔE00 3.34
Cobalt Blue
#030AA7
ΔE00 3.34
Royal Blue (survey)
#0504AA
ΔE00 3.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A17B3 #A0B317
analogous
#1752B3 #2A17B3 #7817B3
triadic
#2A17B3 #B32A17 #17B32A
tetradic
#2A17B3 #B31752 #A0B317 #17B378
square
#2A17B3 #B31752 #A0B317 #17B378
split-complementary
#2A17B3 #B37817 #52B317
monochromatic
#110947 #1D107D #2A17B3 #3C24E3 #6C5BEA
Accessibility & contrast
On white
11.22
#2A17B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2A17B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A17B3
11.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A17B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A17B3 | 1.00 | 11.22 | 1.87 | 11.22 |
| #FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a17b3; /* rgb */ color: rgb(42, 23, 179); /* oklch */ color: oklch(37.7% 0.221 273.3);
Tailwind
colors: {
custom: {
50: '#7d5ccb',
500: '#2a17b3',
950: '#000000',
},
}SCSS
$custom: #2a17b3; $custom-light: #7d5ccb; $custom-dark: #000000;
JSON
{
"hex": "#2a17b3",
"rgb": {
"r": 42,
"g": 23,
"b": 179
},
"hsl": {
"h": 247.308,
"s": 77.228,
"l": 39.608
},
"oklch": {
"l": 0.37687,
"c": 0.22102,
"h": 273.3
},
"luminance": 0.0436
}Semantic roles & 50–950 ramp
primary
#2A17B3
secondary
#BFCD58
accent
#F434DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982