#2A146B#2A146B
#2A146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.139 H 285.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2A146B |
|---|---|
| RGB | rgb(42, 20, 107) |
| HSL | hsl(255, 69%, 25%) |
| HSV | hsv(255, 81%, 42%) |
| CMYK | cmyk(60.7%, 81.3%, 0%, 58%) |
| CIE-LAB | lab(15.77, 34.91, -46.41) |
| CIE-LCH | lch(15.77, 58.07, 306.94°) |
| OKLab | oklab(28.95% 0.0368 -0.1337) |
| OKLCH | oklch(28.95% 0.139 285.4) |
| XYZ | xyz(3.8580, 2.0539, 14.1002) |
| Luminance | 0.0205 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Dark Indigo
#1F0954
ΔE00 4.28
Darkblue (survey)
#030764
ΔE00 4.48
Dark Royal Blue
#02066F
ΔE00 4.51
Deep Blue
#040273
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A146B #556B14
analogous
#142A6B #2A146B #55146B
triadic
#2A146B #6B2A14 #146B2A
tetradic
#2A146B #6B142A #556B14 #146B55
square
#2A146B #6B142A #556B14 #146B55
split-complementary
#2A146B #6B5514 #2A6B14
monochromatic
#0A051A #160A37 #2A146B #3E1E9F #5227D2
Accessibility & contrast
On white
14.89
#2A146B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2A146B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A146B
14.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A146B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A146B | 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)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#072D3F
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a146b; /* rgb */ color: rgb(42, 20, 107); /* oklch */ color: oklch(29.0% 0.139 285.4);
Tailwind
colors: {
custom: {
50: '#6d5596',
500: '#2a146b',
950: '#000000',
},
}SCSS
$custom: #2a146b; $custom-light: #6d5596; $custom-dark: #000000;
JSON
{
"hex": "#2a146b",
"rgb": {
"r": 42,
"g": 20,
"b": 107
},
"hsl": {
"h": 255.172,
"s": 68.504,
"l": 24.902
},
"oklch": {
"l": 0.28953,
"c": 0.13868,
"h": 285.4
},
"luminance": 0.02054
}Semantic roles & 50–950 ramp
primary
#2A146B
secondary
#87A239
accent
#EB3CBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E