#2A1B9F#2A1B9F
#2A1B9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.196 H 275.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B9F |
|---|---|
| RGB | rgb(42, 27, 159) |
| HSL | hsl(247, 71%, 36%) |
| HSV | hsv(247, 83%, 62%) |
| CMYK | cmyk(73.6%, 83%, 0%, 37.6%) |
| CIE-LAB | lab(22.93, 47.65, -67.40) |
| CIE-LCH | lch(22.93, 82.54, 305.26°) |
| OKLab | oklab(35.68% 0.0173 -0.1948) |
| OKLCH | oklch(35.68% 0.196 275.1) |
| XYZ | xyz(7.6027, 3.7786, 33.1228) |
| Luminance | 0.0378 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.91
Indigo Blue
#3A18B1
ΔE00 3.07
Cobalt Blue
#030AA7
ΔE00 3.07
Royal Blue (survey)
#0504AA
ΔE00 3.49
Ultramarine
#2000B1
ΔE00 3.60
True Blue
#010FCC
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B9F #909F1B
analogous
#1B4E9F #2A1B9F #6C1B9F
triadic
#2A1B9F #9F2A1B #1B9F2A
tetradic
#2A1B9F #9F1B4E #909F1B #1B9F6C
square
#2A1B9F #9F1B4E #909F1B #1B9F6C
split-complementary
#2A1B9F #9F6C1B #4E9F1B
monochromatic
#0E0936 #1C126B #2A1B9F #3824D3 #6353E2
Accessibility & contrast
On white
11.96
#2A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#2A1B9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B9F
11.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B9F | 1.00 | 11.96 | 1.76 | 11.96 |
| #FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2a1b9f; /* rgb */ color: rgb(42, 27, 159); /* oklch */ color: oklch(35.7% 0.196 275.1);
Tailwind
colors: {
custom: {
50: '#785cbd',
500: '#2a1b9f',
950: '#000000',
},
}SCSS
$custom: #2a1b9f; $custom-light: #785cbd; $custom-dark: #000000;
JSON
{
"hex": "#2a1b9f",
"rgb": {
"r": 42,
"g": 27,
"b": 159
},
"hsl": {
"h": 246.818,
"s": 70.968,
"l": 36.471
},
"oklch": {
"l": 0.3568,
"c": 0.19561,
"h": 275.1
},
"luminance": 0.03779
}Semantic roles & 50–950 ramp
primary
#2A1B9F
secondary
#B7C551
accent
#EE3AD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981