#2A1F7A#2A1F7A
#2A1F7A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.146 H 279.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F7A |
|---|---|
| RGB | rgb(42, 31, 122) |
| HSL | hsl(247, 59%, 30%) |
| HSV | hsv(247, 75%, 48%) |
| CMYK | cmyk(65.6%, 74.6%, 0%, 52.2%) |
| CIE-LAB | lab(19.54, 33.59, -49.89) |
| CIE-LCH | lch(19.54, 60.15, 303.95°) |
| OKLab | oklab(32.09% 0.0247 -0.1439) |
| OKLCH | oklch(32.09% 0.146 279.7) |
| XYZ | xyz(4.9566, 2.8770, 18.7027) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Royal
#0C1793
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 5.65
Dark Royal Blue
#02066F
ΔE00 5.96
Deep Blue
#040273
ΔE00 6.33
Navy
#000080
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F7A #6F7A1F
analogous
#1F417A #2A1F7A #581F7A
triadic
#2A1F7A #7A2A1F #1F7A2A
tetradic
#2A1F7A #7A1F41 #6F7A1F #1F7A58
square
#2A1F7A #7A1F41 #6F7A1F #1F7A58
split-complementary
#2A1F7A #7A581F #417A1F
monochromatic
#080618 #191349 #2A1F7A #3B2BAB #5544CF
Accessibility & contrast
On white
13.33
#2A1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2A1F7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F7A
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F7A | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1f7a; /* rgb */ color: rgb(42, 31, 122); /* oklch */ color: oklch(32.1% 0.146 279.7);
Tailwind
colors: {
custom: {
50: '#6f5ca1',
500: '#2a1f7a',
950: '#000000',
},
}SCSS
$custom: #2a1f7a; $custom-light: #6f5ca1; $custom-dark: #000000;
JSON
{
"hex": "#2a1f7a",
"rgb": {
"r": 42,
"g": 31,
"b": 122
},
"hsl": {
"h": 247.253,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.32094,
"c": 0.14605,
"h": 279.7
},
"luminance": 0.02877
}Semantic roles & 50–950 ramp
primary
#2A1F7A
secondary
#A1AD47
accent
#E345D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F