#2A1F7D#2A1F7D
#2A1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.150 H 279.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F7D |
|---|---|
| RGB | rgb(42, 31, 125) |
| HSL | hsl(247, 60%, 31%) |
| HSV | hsv(247, 75%, 49%) |
| CMYK | cmyk(66.4%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(19.85, 34.61, -51.30) |
| CIE-LCH | lch(19.85, 61.88, 304.01°) |
| OKLab | oklab(32.41% 0.024 -0.148) |
| OKLCH | oklch(32.41% 0.15 279.2) |
| XYZ | xyz(5.1453, 2.9525, 19.6968) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Royal
#0C1793
ΔE00 4.33
Indigo (survey)
#380282
ΔE00 5.48
Dark Royal Blue
#02066F
ΔE00 6.02
Darkblue
#00008B
ΔE00 6.29
Navy
#000080
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F7D #727D1F
analogous
#1F437D #2A1F7D #591F7D
triadic
#2A1F7D #7D2A1F #1F7D2A
tetradic
#2A1F7D #7D1F43 #727D1F #1F7D59
square
#2A1F7D #7D1F43 #727D1F #1F7D59
split-complementary
#2A1F7D #7D591F #437D1F
monochromatic
#09071B #1A134C #2A1F7D #3A2BAE #5645D1
Accessibility & contrast
On white
13.20
#2A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2A1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F7D
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F7D | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a1f7d; /* rgb */ color: rgb(42, 31, 125); /* oklch */ color: oklch(32.4% 0.150 279.2);
Tailwind
colors: {
custom: {
50: '#6f5ca4',
500: '#2a1f7d',
950: '#000000',
},
}SCSS
$custom: #2a1f7d; $custom-light: #6f5ca4; $custom-dark: #000000;
JSON
{
"hex": "#2a1f7d",
"rgb": {
"r": 42,
"g": 31,
"b": 125
},
"hsl": {
"h": 247.021,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.32406,
"c": 0.14999,
"h": 279.2
},
"luminance": 0.02953
}Semantic roles & 50–950 ramp
primary
#2A1F7D
secondary
#A4B048
accent
#E344D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F