#2A1B88#2A1B88
#2A1B88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.168 H 278.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B88 |
|---|---|
| RGB | rgb(42, 27, 136) |
| HSL | hsl(248, 67%, 32%) |
| HSV | hsv(248, 80%, 53%) |
| CMYK | cmyk(69.1%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.26, 40.45, -57.58) |
| CIE-LCH | lch(20.26, 70.37, 305.09°) |
| OKLab | oklab(33.05% 0.0238 -0.1663) |
| OKLCH | oklch(33.05% 0.168 278.1) |
| XYZ | xyz(5.7893, 3.0532, 23.5720) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.73
Midnight Blue
#191970
ΔE00 4.24
Indigo (survey)
#380282
ΔE00 4.40
Darkblue
#00008B
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.06
Navy
#000080
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B88 #79881B
analogous
#1B4388 #2A1B88 #611B88
triadic
#2A1B88 #882A1B #1B882A
tetradic
#2A1B88 #881B43 #79881B #1B8861
square
#2A1B88 #881B43 #79881B #1B8861
split-complementary
#2A1B88 #88611B #43881B
monochromatic
#0A0722 #1A1155 #2A1B88 #3A25BB #5844DA
Accessibility & contrast
On white
13.04
#2A1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#2A1B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B88
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B88 | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1b88; /* rgb */ color: rgb(42, 27, 136); /* oklch */ color: oklch(33.0% 0.168 278.1);
Tailwind
colors: {
custom: {
50: '#725aac',
500: '#2a1b88',
950: '#000000',
},
}SCSS
$custom: #2a1b88; $custom-light: #725aac; $custom-dark: #000000;
JSON
{
"hex": "#2a1b88",
"rgb": {
"r": 42,
"g": 27,
"b": 136
},
"hsl": {
"h": 248.257,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.33045,
"c": 0.16803,
"h": 278.1
},
"luminance": 0.03054
}Semantic roles & 50–950 ramp
primary
#2A1B88
secondary
#ABBB44
accent
#EA3ED2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F