#2A146F#2A146F
#2A146F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.144 H 284.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2A146F |
|---|---|
| RGB | rgb(42, 20, 111) |
| HSL | hsl(255, 69%, 26%) |
| HSV | hsv(255, 82%, 44%) |
| CMYK | cmyk(62.2%, 82%, 0%, 56.5%) |
| CIE-LAB | lab(16.21, 36.16, -48.30) |
| CIE-LCH | lch(16.21, 60.34, 306.82°) |
| OKLab | oklab(29.39% 0.0356 -0.1392) |
| OKLCH | oklch(29.39% 0.144 284.3) |
| XYZ | xyz(4.0734, 2.1400, 15.2343) |
| Luminance | 0.0214 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.87
Dark Royal Blue
#02066F
ΔE00 4.28
Indigo (survey)
#380282
ΔE00 4.42
Darkblue (survey)
#030764
ΔE00 4.53
Deep Blue
#040273
ΔE00 4.61
Dark Indigo
#1F0954
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A146F #596F14
analogous
#142C6F #2A146F #57146F
triadic
#2A146F #6F2A14 #146F2A
tetradic
#2A146F #6F142C #596F14 #146F57
square
#2A146F #6F142C #596F14 #146F57
split-complementary
#2A146F #6F5714 #2C6F14
monochromatic
#0A051A #160B3B #2A146F #3E1DA3 #5127D7
Accessibility & contrast
On white
14.71
#2A146F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2A146F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A146F
14.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A146F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A146F | 1.00 | 14.71 | 1.43 | 14.71 |
| #FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2a146f; /* rgb */ color: rgb(42, 20, 111); /* oklch */ color: oklch(29.4% 0.144 284.3);
Tailwind
colors: {
custom: {
50: '#6d5599',
500: '#2a146f',
950: '#000000',
},
}SCSS
$custom: #2a146f; $custom-light: #6d5599; $custom-dark: #000000;
JSON
{
"hex": "#2a146f",
"rgb": {
"r": 42,
"g": 20,
"b": 111
},
"hsl": {
"h": 254.505,
"s": 69.466,
"l": 25.686
},
"oklch": {
"l": 0.2939,
"c": 0.14368,
"h": 284.3
},
"luminance": 0.0214
}Semantic roles & 50–950 ramp
primary
#2A146F
secondary
#8BA639
accent
#EC3CC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E