#2A1988#2A1988
#2A1988 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.170 H 278.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1988 |
|---|---|
| RGB | rgb(42, 25, 136) |
| HSL | hsl(249, 69%, 32%) |
| HSV | hsv(249, 82%, 53%) |
| CMYK | cmyk(69.1%, 81.6%, 0%, 46.7%) |
| CIE-LAB | lab(19.90, 41.48, -58.17) |
| CIE-LCH | lch(19.90, 71.44, 305.49°) |
| OKLab | oklab(32.8% 0.0248 -0.168) |
| OKLCH | oklch(32.8% 0.17 278.4) |
| XYZ | xyz(5.7450, 2.9646, 23.5572) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.67
Indigo (survey)
#380282
ΔE00 4.02
Midnight Blue
#191970
ΔE00 4.32
Darkblue
#00008B
ΔE00 4.56
Cobalt Blue
#030AA7
ΔE00 4.88
Navy
#000080
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1988 #778819
analogous
#194088 #2A1988 #621988
triadic
#2A1988 #882A19 #19882A
tetradic
#2A1988 #881940 #778819 #198862
square
#2A1988 #881940 #778819 #198862
split-complementary
#2A1988 #886219 #408819
monochromatic
#0A0621 #1A0F54 #2A1988 #3A23BC #5840DC
Accessibility & contrast
On white
13.18
#2A1988 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2A1988 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1988
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1988 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1988 | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1988; /* rgb */ color: rgb(42, 25, 136); /* oklch */ color: oklch(32.8% 0.170 278.4);
Tailwind
colors: {
custom: {
50: '#7359ac',
500: '#2a1988',
950: '#000000',
},
}SCSS
$custom: #2a1988; $custom-light: #7359ac; $custom-dark: #000000;
JSON
{
"hex": "#2a1988",
"rgb": {
"r": 42,
"g": 25,
"b": 136
},
"hsl": {
"h": 249.189,
"s": 68.944,
"l": 31.569
},
"oklch": {
"l": 0.32798,
"c": 0.16983,
"h": 278.4
},
"luminance": 0.02965
}Semantic roles & 50–950 ramp
primary
#2A1988
secondary
#A9BB41
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F