#2A1B97#2A1B97
#2A1B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.186 H 276.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B97 |
|---|---|
| RGB | rgb(42, 27, 151) |
| HSL | hsl(247, 70%, 35%) |
| HSV | hsv(247, 82%, 59%) |
| CMYK | cmyk(72.2%, 82.1%, 0%, 40.8%) |
| CIE-LAB | lab(21.98, 45.19, -64.06) |
| CIE-LCH | lch(21.98, 78.39, 305.20°) |
| OKLab | oklab(34.75% 0.0195 -0.1852) |
| OKLCH | oklch(34.75% 0.186 276) |
| XYZ | xyz(6.9309, 3.5098, 29.5844) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.35
Cobalt Blue
#030AA7
ΔE00 3.49
Royal Blue (survey)
#0504AA
ΔE00 3.97
Indigo Blue
#3A18B1
ΔE00 4.05
Ultramarine
#2000B1
ΔE00 4.34
Darkblue
#00008B
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B97 #88971B
analogous
#1B4A97 #2A1B97 #681B97
triadic
#2A1B97 #972A1B #1B972A
tetradic
#2A1B97 #971B4A #88971B #1B9768
square
#2A1B97 #971B4A #88971B #1B9768
split-complementary
#2A1B97 #97681B #4A971B
monochromatic
#0D082F #1C1263 #2A1B97 #3824CB #5F4DDF
Accessibility & contrast
On white
12.34
#2A1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2A1B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B97
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B97 | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a1b97; /* rgb */ color: rgb(42, 27, 151); /* oklch */ color: oklch(34.8% 0.186 276.0);
Tailwind
colors: {
custom: {
50: '#765bb7',
500: '#2a1b97',
950: '#000000',
},
}SCSS
$custom: #2a1b97; $custom-light: #765bb7; $custom-dark: #000000;
JSON
{
"hex": "#2a1b97",
"rgb": {
"r": 42,
"g": 27,
"b": 151
},
"hsl": {
"h": 247.258,
"s": 69.663,
"l": 34.902
},
"oklch": {
"l": 0.34751,
"c": 0.18619,
"h": 276
},
"luminance": 0.0351
}Semantic roles & 50–950 ramp
primary
#2A1B97
secondary
#B3C14C
accent
#EC3BD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980