#2A1B9E#2A1B9E
#2A1B9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.194 H 275.2°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B9E |
|---|---|
| RGB | rgb(42, 27, 158) |
| HSL | hsl(247, 71%, 36%) |
| HSV | hsv(247, 83%, 62%) |
| CMYK | cmyk(73.4%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(22.81, 47.35, -66.98) |
| CIE-LCH | lch(22.81, 82.03, 305.25°) |
| OKLab | oklab(35.56% 0.0175 -0.1936) |
| OKLCH | oklch(35.56% 0.194 275.2) |
| XYZ | xyz(7.5163, 3.7440, 32.6677) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Cobalt Blue
#030AA7
ΔE00 3.10
Indigo Blue
#3A18B1
ΔE00 3.19
Royal Blue (survey)
#0504AA
ΔE00 3.53
Ultramarine
#2000B1
ΔE00 3.68
Darkblue
#00008B
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B9E #8F9E1B
analogous
#1B4E9E #2A1B9E #6C1B9E
triadic
#2A1B9E #9E2A1B #1B9E2A
tetradic
#2A1B9E #9E1B4E #8F9E1B #1B9E6C
square
#2A1B9E #9E1B4E #8F9E1B #1B9E6C
split-complementary
#2A1B9E #9E6C1B #4E9E1B
monochromatic
#0E0935 #1C126A #2A1B9E #3824D2 #6252E1
Accessibility & contrast
On white
12.01
#2A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2A1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B9E
12.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B9E | 1.00 | 12.01 | 1.75 | 12.01 |
| #FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a1b9e; /* rgb */ color: rgb(42, 27, 158); /* oklch */ color: oklch(35.6% 0.194 275.2);
Tailwind
colors: {
custom: {
50: '#775cbc',
500: '#2a1b9e',
950: '#000000',
},
}SCSS
$custom: #2a1b9e; $custom-light: #775cbc; $custom-dark: #000000;
JSON
{
"hex": "#2a1b9e",
"rgb": {
"r": 42,
"g": 27,
"b": 158
},
"hsl": {
"h": 246.87,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.35563,
"c": 0.19444,
"h": 275.2
},
"luminance": 0.03745
}Semantic roles & 50–950 ramp
primary
#2A1B9E
secondary
#B7C451
accent
#EE3AD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981