#2A126E#2A126E
#2A126E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.144 H 284.9°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2A126E |
|---|---|
| RGB | rgb(42, 18, 110) |
| HSL | hsl(256, 72%, 25%) |
| HSV | hsv(256, 84%, 43%) |
| CMYK | cmyk(61.8%, 83.6%, 0%, 56.9%) |
| CIE-LAB | lab(15.75, 36.85, -48.40) |
| CIE-LCH | lch(15.75, 60.83, 307.28°) |
| OKLab | oklab(29.04% 0.0372 -0.1395) |
| OKLCH | oklch(29.04% 0.144 284.9) |
| XYZ | xyz(3.9848, 2.0504, 14.9346) |
| Luminance | 0.0205 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Dark Royal Blue
#02066F
ΔE00 4.12
Indigo (survey)
#380282
ΔE00 4.28
Darkblue (survey)
#030764
ΔE00 4.35
Deep Blue
#040273
ΔE00 4.41
Dark Indigo
#1F0954
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A126E #566E12
analogous
#12286E #2A126E #58126E
triadic
#2A126E #6E2A12 #126E2A
tetradic
#2A126E #6E1228 #566E12 #126E58
square
#2A126E #6E1228 #566E12 #126E58
split-complementary
#2A126E #6E5812 #286E12
monochromatic
#0A041A #160939 #2A126E #3E1BA3 #5223D7
Accessibility & contrast
On white
14.89
#2A126E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2A126E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A126E
14.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A126E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A126E | 1.00 | 14.89 | 1.41 | 14.89 |
| #FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#022E40
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a126e; /* rgb */ color: rgb(42, 18, 110); /* oklch */ color: oklch(29.0% 0.144 284.9);
Tailwind
colors: {
custom: {
50: '#6d5499',
500: '#2a126e',
950: '#000000',
},
}SCSS
$custom: #2a126e; $custom-light: #6d5499; $custom-dark: #000000;
JSON
{
"hex": "#2a126e",
"rgb": {
"r": 42,
"g": 18,
"b": 110
},
"hsl": {
"h": 255.652,
"s": 71.875,
"l": 25.098
},
"oklch": {
"l": 0.2904,
"c": 0.14437,
"h": 284.9
},
"luminance": 0.02051
}Semantic roles & 50–950 ramp
primary
#2A126E
secondary
#88A537
accent
#EF39BF
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E