#2A146C#2A146C
#2A146C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.140 H 285.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2A146C |
|---|---|
| RGB | rgb(42, 20, 108) |
| HSL | hsl(255, 69%, 25%) |
| HSV | hsv(255, 81%, 42%) |
| CMYK | cmyk(61.1%, 81.5%, 0%, 57.6%) |
| CIE-LAB | lab(15.88, 35.22, -46.89) |
| CIE-LCH | lch(15.88, 58.64, 306.91°) |
| OKLab | oklab(29.06% 0.0365 -0.1351) |
| OKLCH | oklch(29.06% 0.14 285.1) |
| XYZ | xyz(3.9110, 2.0750, 14.3789) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.98
Dark Indigo
#1F0954
ΔE00 4.42
Dark Royal Blue
#02066F
ΔE00 4.44
Darkblue (survey)
#030764
ΔE00 4.48
Indigo (survey)
#380282
ΔE00 4.80
Deep Blue
#040273
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A146C #566C14
analogous
#142A6C #2A146C #56146C
triadic
#2A146C #6C2A14 #146C2A
tetradic
#2A146C #6C142A #566C14 #146C56
square
#2A146C #6C142A #566C14 #146C56
split-complementary
#2A146C #6C5614 #2A6C14
monochromatic
#0A051A #160A38 #2A146C #3E1EA0 #5227D3
Accessibility & contrast
On white
14.84
#2A146C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2A146C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A146C
14.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A146C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A146C | 1.00 | 14.84 | 1.42 | 14.84 |
| #FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#062E40
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2a146c; /* rgb */ color: rgb(42, 20, 108); /* oklch */ color: oklch(29.1% 0.140 285.1);
Tailwind
colors: {
custom: {
50: '#6d5597',
500: '#2a146c',
950: '#000000',
},
}SCSS
$custom: #2a146c; $custom-light: #6d5597; $custom-dark: #000000;
JSON
{
"hex": "#2a146c",
"rgb": {
"r": 42,
"g": 20,
"b": 108
},
"hsl": {
"h": 255,
"s": 68.75,
"l": 25.098
},
"oklch": {
"l": 0.29062,
"c": 0.13993,
"h": 285.1
},
"luminance": 0.02075
}Semantic roles & 50–950 ramp
primary
#2A146C
secondary
#88A339
accent
#EC3CC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E