#2A1C7C#2A1C7C
#2A1C7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.152 H 280.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1C7C |
|---|---|
| RGB | rgb(42, 28, 124) |
| HSL | hsl(249, 63%, 30%) |
| HSV | hsv(249, 77%, 49%) |
| CMYK | cmyk(66.1%, 77.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.13, 36.01, -51.85) |
| CIE-LCH | lch(19.13, 63.13, 304.78°) |
| OKLab | oklab(31.86% 0.0264 -0.1496) |
| OKLCH | oklch(31.86% 0.152 280) |
| XYZ | xyz(5.0070, 2.7776, 19.3371) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.82
Dark Royal Blue
#02066F
ΔE00 5.43
Navy
#000080
ΔE00 5.69
Deep Blue
#040273
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1C7C #6E7C1C
analogous
#1C3E7C #2A1C7C #5A1C7C
triadic
#2A1C7C #7C2A1C #1C7C2A
tetradic
#2A1C7C #7C1C3E #6E7C1C #1C7C5A
square
#2A1C7C #7C1C3E #6E7C1C #1C7C5A
split-complementary
#2A1C7C #7C5A1C #3E7C1C
monochromatic
#080619 #19114A #2A1C7C #3B27AE #553FD4
Accessibility & contrast
On white
13.50
#2A1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2A1C7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1C7C
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1C7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1C7C | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1c7c; /* rgb */ color: rgb(42, 28, 124); /* oklch */ color: oklch(31.9% 0.152 280.0);
Tailwind
colors: {
custom: {
50: '#705aa3',
500: '#2a1c7c',
950: '#000000',
},
}SCSS
$custom: #2a1c7c; $custom-light: #705aa3; $custom-dark: #000000;
JSON
{
"hex": "#2a1c7c",
"rgb": {
"r": 42,
"g": 28,
"b": 124
},
"hsl": {
"h": 248.75,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.31863,
"c": 0.15194,
"h": 280
},
"luminance": 0.02778
}Semantic roles & 50–950 ramp
primary
#2A1C7C
secondary
#A0B044
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F