#2A1BA1#2A1BA1
#2A1BA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.9% C 0.198 H 274.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1BA1 |
|---|---|
| RGB | rgb(42, 27, 161) |
| HSL | hsl(247, 71%, 37%) |
| HSV | hsv(247, 83%, 63%) |
| CMYK | cmyk(73.9%, 83.2%, 0%, 36.9%) |
| CIE-LAB | lab(23.16, 48.26, -68.22) |
| CIE-LCH | lch(23.16, 83.57, 305.28°) |
| OKLab | oklab(35.91% 0.0167 -0.1972) |
| OKLCH | oklch(35.91% 0.198 274.8) |
| XYZ | xyz(7.7777, 3.8485, 34.0443) |
| Luminance | 0.0385 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.84
Cobalt Blue
#030AA7
ΔE00 3.02
Royal
#0C1793
ΔE00 3.09
Royal Blue (survey)
#0504AA
ΔE00 3.42
Ultramarine
#2000B1
ΔE00 3.45
True Blue
#010FCC
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1BA1 #92A11B
analogous
#1B4FA1 #2A1BA1 #6D1BA1
triadic
#2A1BA1 #A12A1B #1BA12A
tetradic
#2A1BA1 #A11B4F #92A11B #1BA16D
square
#2A1BA1 #A11B4F #92A11B #1BA16D
split-complementary
#2A1BA1 #A16D1B #4FA11B
monochromatic
#0F0938 #1C126D #2A1BA1 #3824D5 #6454E2
Accessibility & contrast
On white
11.87
#2A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#2A1BA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1BA1
11.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1BA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1BA1 | 1.00 | 11.87 | 1.77 | 11.87 |
| #FFFFFF | 11.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #2a1ba1; /* rgb */ color: rgb(42, 27, 161); /* oklch */ color: oklch(35.9% 0.198 274.8);
Tailwind
colors: {
custom: {
50: '#785cbe',
500: '#2a1ba1',
950: '#000000',
},
}SCSS
$custom: #2a1ba1; $custom-light: #785cbe; $custom-dark: #000000;
JSON
{
"hex": "#2a1ba1",
"rgb": {
"r": 42,
"g": 27,
"b": 161
},
"hsl": {
"h": 246.716,
"s": 71.277,
"l": 36.863
},
"oklch": {
"l": 0.35914,
"c": 0.19794,
"h": 274.8
},
"luminance": 0.03849
}Semantic roles & 50–950 ramp
primary
#2A1BA1
secondary
#B8C552
accent
#EE3ADA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981