#2A1B79#2A1B79
#2A1B79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.149 H 280.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B79 |
|---|---|
| RGB | rgb(42, 27, 121) |
| HSL | hsl(250, 64%, 29%) |
| HSV | hsv(250, 78%, 47%) |
| CMYK | cmyk(65.3%, 77.7%, 0%, 52.5%) |
| CIE-LAB | lab(18.61, 35.59, -50.79) |
| CIE-LCH | lch(18.61, 62.02, 305.02°) |
| OKLab | oklab(31.4% 0.0278 -0.1465) |
| OKLCH | oklch(31.4% 0.149 280.7) |
| XYZ | xyz(4.7969, 2.6562, 18.3454) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.51
Royal
#0C1793
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 4.78
Dark Royal Blue
#02066F
ΔE00 5.20
Deep Blue
#040273
ΔE00 5.49
Navy
#000080
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B79 #6A791B
analogous
#1B3B79 #2A1B79 #591B79
triadic
#2A1B79 #792A1B #1B792A
tetradic
#2A1B79 #791B3B #6A791B #1B7959
square
#2A1B79 #791B3B #6A791B #1B7959
split-complementary
#2A1B79 #79591B #3B791B
monochromatic
#090619 #191047 #2A1B79 #3B26AB #533BD3
Accessibility & contrast
On white
13.71
#2A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2A1B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B79
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B79 | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2a1b79; /* rgb */ color: rgb(42, 27, 121); /* oklch */ color: oklch(31.4% 0.149 280.7);
Tailwind
colors: {
custom: {
50: '#6f5aa1',
500: '#2a1b79',
950: '#000000',
},
}SCSS
$custom: #2a1b79; $custom-light: #6f5aa1; $custom-dark: #000000;
JSON
{
"hex": "#2a1b79",
"rgb": {
"r": 42,
"g": 27,
"b": 121
},
"hsl": {
"h": 249.574,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.31401,
"c": 0.14916,
"h": 280.7
},
"luminance": 0.02657
}Semantic roles & 50–950 ramp
primary
#2A1B79
secondary
#9CAD43
accent
#E741CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F