#2A15B3#2A15B3
#2A15B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.222 H 273.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2A15B3 |
|---|---|
| RGB | rgb(42, 21, 179) |
| HSL | hsl(248, 79%, 39%) |
| HSV | hsv(248, 88%, 70%) |
| CMYK | cmyk(76.5%, 88.3%, 0%, 29.8%) |
| CIE-LAB | lab(24.58, 55.94, -76.73) |
| CIE-LCH | lch(24.58, 94.96, 306.09°) |
| OKLab | oklab(37.52% 0.0129 -0.2218) |
| OKLCH | oklch(37.52% 0.222 273.3) |
| XYZ | xyz(9.3570, 4.2823, 42.9725) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.52
Ultramarine
#2000B1
ΔE00 2.29
True Blue
#010FCC
ΔE00 2.99
Cobalt Blue
#030AA7
ΔE00 3.19
Royal Blue (survey)
#0504AA
ΔE00 3.20
Mediumblue
#0000CD
ΔE00 3.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A15B3 #9EB315
analogous
#154FB3 #2A15B3 #7915B3
triadic
#2A15B3 #B32A15 #15B32A
tetradic
#2A15B3 #B3154F #9EB315 #15B379
square
#2A15B3 #B3154F #9EB315 #15B379
split-complementary
#2A15B3 #B37915 #4FB315
monochromatic
#100845 #1D0F7C #2A15B3 #3A20E5 #6B57EB
Accessibility & contrast
On white
11.31
#2A15B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2A15B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A15B3
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A15B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A15B3 | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2a15b3; /* rgb */ color: rgb(42, 21, 179); /* oklch */ color: oklch(37.5% 0.222 273.3);
Tailwind
colors: {
custom: {
50: '#7d5bcb',
500: '#2a15b3',
950: '#000000',
},
}SCSS
$custom: #2a15b3; $custom-light: #7d5bcb; $custom-dark: #000000;
JSON
{
"hex": "#2a15b3",
"rgb": {
"r": 42,
"g": 21,
"b": 179
},
"hsl": {
"h": 247.975,
"s": 79,
"l": 39.216
},
"oklch": {
"l": 0.37523,
"c": 0.22216,
"h": 273.3
},
"luminance": 0.04283
}Semantic roles & 50–950 ramp
primary
#2A15B3
secondary
#BECE56
accent
#F532DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982