#2A1A6E#2A1A6E
#2A1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.136 H 283.3°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A6E |
|---|---|
| RGB | rgb(42, 26, 110) |
| HSL | hsl(251, 62%, 27%) |
| HSV | hsv(251, 76%, 43%) |
| CMYK | cmyk(61.8%, 76.4%, 0%, 56.9%) |
| CIE-LAB | lab(17.26, 32.54, -45.92) |
| CIE-LCH | lch(17.26, 56.28, 305.32°) |
| OKLab | oklab(30.1% 0.0313 -0.1323) |
| OKLCH | oklch(30.1% 0.136 283.3) |
| XYZ | xyz(4.1378, 2.3565, 14.9856) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.36
Dark Royal Blue
#02066F
ΔE00 5.24
Darkblue (survey)
#030764
ΔE00 5.27
Dark Indigo
#1F0954
ΔE00 5.29
Indigo (survey)
#380282
ΔE00 5.61
Deep Blue
#040273
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A6E #5E6E1A
analogous
#1A346E #2A1A6E #541A6E
triadic
#2A1A6E #6E2A1A #1A6E2A
tetradic
#2A1A6E #6E1A34 #5E6E1A #1A6E54
square
#2A1A6E #6E1A34 #5E6E1A #1A6E54
split-complementary
#2A1A6E #6E541A #346E1A
monochromatic
#090619 #170E3D #2A1A6E #3D26A0 #5134CF
Accessibility & contrast
On white
14.27
#2A1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2A1A6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A6E
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A6E | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#013142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2a1a6e; /* rgb */ color: rgb(42, 26, 110); /* oklch */ color: oklch(30.1% 0.136 283.3);
Tailwind
colors: {
custom: {
50: '#6d5898',
500: '#2a1a6e',
950: '#000000',
},
}SCSS
$custom: #2a1a6e; $custom-light: #6d5898; $custom-dark: #000000;
JSON
{
"hex": "#2a1a6e",
"rgb": {
"r": 42,
"g": 26,
"b": 110
},
"hsl": {
"h": 251.429,
"s": 61.765,
"l": 26.667
},
"oklch": {
"l": 0.30097,
"c": 0.13595,
"h": 283.3
},
"luminance": 0.02357
}Semantic roles & 50–950 ramp
primary
#2A1A6E
secondary
#90A341
accent
#E543C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E