#2A1B85#2A1B85
#2A1B85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.164 H 278.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B85 |
|---|---|
| RGB | rgb(42, 27, 133) |
| HSL | hsl(248, 66%, 31%) |
| HSV | hsv(248, 80%, 52%) |
| CMYK | cmyk(68.4%, 79.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.92, 39.49, -56.25) |
| CIE-LCH | lch(19.92, 68.73, 305.07°) |
| OKLab | oklab(32.71% 0.0246 -0.1625) |
| OKLCH | oklch(32.71% 0.164 278.6) |
| XYZ | xyz(5.5791, 2.9691, 22.4648) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Midnight Blue
#191970
ΔE00 3.85
Indigo (survey)
#380282
ΔE00 4.37
Darkblue
#00008B
ΔE00 5.00
Navy
#000080
ΔE00 5.32
Cobalt Blue
#030AA7
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B85 #76851B
analogous
#1B4185 #2A1B85 #5F1B85
triadic
#2A1B85 #852A1B #1B852A
tetradic
#2A1B85 #851B41 #76851B #1B855F
square
#2A1B85 #851B41 #76851B #1B855F
split-complementary
#2A1B85 #855F1B #41851B
monochromatic
#0A061F #1A1152 #2A1B85 #3A25B8 #5742D9
Accessibility & contrast
On white
13.17
#2A1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2A1B85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B85
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B85 | 1.00 | 13.17 | 1.59 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1b85; /* rgb */ color: rgb(42, 27, 133); /* oklch */ color: oklch(32.7% 0.164 278.6);
Tailwind
colors: {
custom: {
50: '#725aaa',
500: '#2a1b85',
950: '#000000',
},
}SCSS
$custom: #2a1b85; $custom-light: #725aaa; $custom-dark: #000000;
JSON
{
"hex": "#2a1b85",
"rgb": {
"r": 42,
"g": 27,
"b": 133
},
"hsl": {
"h": 248.491,
"s": 66.25,
"l": 31.373
},
"oklch": {
"l": 0.32711,
"c": 0.16431,
"h": 278.6
},
"luminance": 0.0297
}Semantic roles & 50–950 ramp
primary
#2A1B85
secondary
#A8B844
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F