#2A1C8C#2A1C8C
#2A1C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 277.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1C8C |
|---|---|
| RGB | rgb(42, 28, 140) |
| HSL | hsl(248, 67%, 33%) |
| HSV | hsv(248, 80%, 55%) |
| CMYK | cmyk(70%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(20.89, 41.21, -59.04) |
| CIE-LCH | lch(20.89, 72.00, 304.92°) |
| OKLab | oklab(33.62% 0.0222 -0.1706) |
| OKLCH | oklch(33.62% 0.172 277.4) |
| XYZ | xyz(6.1022, 3.2157, 25.1050) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.48
Cobalt Blue
#030AA7
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 4.70
Midnight Blue
#191970
ΔE00 4.76
Darkblue
#00008B
ΔE00 5.04
Royal Blue (survey)
#0504AA
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1C8C #7E8C1C
analogous
#1C468C #2A1C8C #621C8C
triadic
#2A1C8C #8C2A1C #1C8C2A
tetradic
#2A1C8C #8C1C46 #7E8C1C #1C8C62
square
#2A1C8C #8C1C46 #7E8C1C #1C8C62
split-complementary
#2A1C8C #8C621C #468C1C
monochromatic
#0B0826 #1B1259 #2A1C8C #3926BF #5A48DA
Accessibility & contrast
On white
12.78
#2A1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2A1C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1C8C
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1C8C | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a1c8c; /* rgb */ color: rgb(42, 28, 140); /* oklch */ color: oklch(33.6% 0.172 277.4);
Tailwind
colors: {
custom: {
50: '#735baf',
500: '#2a1c8c',
950: '#000000',
},
}SCSS
$custom: #2a1c8c; $custom-light: #735baf; $custom-dark: #000000;
JSON
{
"hex": "#2a1c8c",
"rgb": {
"r": 42,
"g": 28,
"b": 140
},
"hsl": {
"h": 247.5,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.3362,
"c": 0.17203,
"h": 277.4
},
"luminance": 0.03216
}Semantic roles & 50–950 ramp
primary
#2A1C8C
secondary
#AEBC48
accent
#EA3ED4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F