#2A1B9B#2A1B9B
#2A1B9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.191 H 275.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B9B |
|---|---|
| RGB | rgb(42, 27, 155) |
| HSL | hsl(247, 70%, 36%) |
| HSV | hsv(247, 83%, 61%) |
| CMYK | cmyk(72.9%, 82.6%, 0%, 39.2%) |
| CIE-LAB | lab(22.45, 46.42, -65.73) |
| CIE-LCH | lch(22.45, 80.47, 305.23°) |
| OKLab | oklab(35.21% 0.0184 -0.19) |
| OKLCH | oklch(35.21% 0.191 275.5) |
| XYZ | xyz(7.2612, 3.6420, 31.3243) |
| Luminance | 0.0364 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.58
Cobalt Blue
#030AA7
ΔE00 3.23
Indigo Blue
#3A18B1
ΔE00 3.55
Royal Blue (survey)
#0504AA
ΔE00 3.69
Ultramarine
#2000B1
ΔE00 3.94
Darkblue
#00008B
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B9B #8C9B1B
analogous
#1B4C9B #2A1B9B #6A1B9B
triadic
#2A1B9B #9B2A1B #1B9B2A
tetradic
#2A1B9B #9B1B4C #8C9B1B #1B9B6A
square
#2A1B9B #9B1B4C #8C9B1B #1B9B6A
split-complementary
#2A1B9B #9B6A1B #4C9B1B
monochromatic
#0E0933 #1C1267 #2A1B9B #3824CF #6150E0
Accessibility & contrast
On white
12.15
#2A1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A1B9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B9B
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B9B | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a1b9b; /* rgb */ color: rgb(42, 27, 155); /* oklch */ color: oklch(35.2% 0.191 275.5);
Tailwind
colors: {
custom: {
50: '#775cba',
500: '#2a1b9b',
950: '#000000',
},
}SCSS
$custom: #2a1b9b; $custom-light: #775cba; $custom-dark: #000000;
JSON
{
"hex": "#2a1b9b",
"rgb": {
"r": 42,
"g": 27,
"b": 155
},
"hsl": {
"h": 247.031,
"s": 70.33,
"l": 35.686
},
"oklch": {
"l": 0.35214,
"c": 0.19092,
"h": 275.5
},
"luminance": 0.03643
}Semantic roles & 50–950 ramp
primary
#2A1B9B
secondary
#B5C34F
accent
#ED3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981