#2A1B92#2A1B92
#2A1B92 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.180 H 276.7°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B92 |
|---|---|
| RGB | rgb(42, 27, 146) |
| HSL | hsl(248, 69%, 34%) |
| HSV | hsv(248, 82%, 57%) |
| CMYK | cmyk(71.2%, 81.5%, 0%, 42.7%) |
| CIE-LAB | lab(21.40, 43.62, -61.93) |
| CIE-LCH | lch(21.40, 75.75, 305.16°) |
| OKLab | oklab(34.18% 0.021 -0.179) |
| OKLCH | oklch(34.18% 0.18 276.7) |
| XYZ | xyz(6.5334, 3.3508, 27.4910) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.24
Cobalt Blue
#030AA7
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.41
Indigo Blue
#3A18B1
ΔE00 4.71
Indigo (survey)
#380282
ΔE00 4.81
Ultramarine
#2000B1
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B92 #83921B
analogous
#1B4892 #2A1B92 #661B92
triadic
#2A1B92 #922A1B #1B922A
tetradic
#2A1B92 #921B48 #83921B #1B9266
square
#2A1B92 #921B48 #83921B #1B9266
split-complementary
#2A1B92 #92661B #48921B
monochromatic
#0C082B #1B115E #2A1B92 #3925C6 #5D4ADE
Accessibility & contrast
On white
12.57
#2A1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2A1B92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B92
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B92 | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#002E90
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2a1b92; /* rgb */ color: rgb(42, 27, 146); /* oklch */ color: oklch(34.2% 0.180 276.7);
Tailwind
colors: {
custom: {
50: '#755bb3',
500: '#2a1b92',
950: '#000000',
},
}SCSS
$custom: #2a1b92; $custom-light: #755bb3; $custom-dark: #000000;
JSON
{
"hex": "#2a1b92",
"rgb": {
"r": 42,
"g": 27,
"b": 146
},
"hsl": {
"h": 247.563,
"s": 68.786,
"l": 33.922
},
"oklch": {
"l": 0.34177,
"c": 0.1802,
"h": 276.7
},
"luminance": 0.03351
}Semantic roles & 50–950 ramp
primary
#2A1B92
secondary
#B1BF49
accent
#EC3CD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980