#2A176C#2A176C
#2A176C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.137 H 284.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2A176C |
|---|---|
| RGB | rgb(42, 23, 108) |
| HSL | hsl(253, 65%, 26%) |
| HSV | hsv(253, 79%, 42%) |
| CMYK | cmyk(61.1%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(16.44, 33.60, -45.96) |
| CIE-LCH | lch(16.44, 56.93, 306.17°) |
| OKLab | oklab(29.46% 0.0343 -0.1324) |
| OKLCH | oklch(29.46% 0.137 284.5) |
| XYZ | xyz(3.9672, 2.1875, 14.3976) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Dark Indigo
#1F0954
ΔE00 4.68
Darkblue (survey)
#030764
ΔE00 4.83
Dark Royal Blue
#02066F
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 5.28
Deep Blue
#040273
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A176C #596C17
analogous
#172E6C #2A176C #54176C
triadic
#2A176C #6C2A17 #176C2A
tetradic
#2A176C #6C172E #596C17 #176C54
square
#2A176C #6C172E #596C17 #176C54
split-complementary
#2A176C #6C5417 #2E6C17
monochromatic
#0A0519 #160C3A #2A176C #3E229E #512CD1
Accessibility & contrast
On white
14.61
#2A176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2A176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A176C
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A176C | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#052F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a176c; /* rgb */ color: rgb(42, 23, 108); /* oklch */ color: oklch(29.5% 0.137 284.5);
Tailwind
colors: {
custom: {
50: '#6d5697',
500: '#2a176c',
950: '#000000',
},
}SCSS
$custom: #2a176c; $custom-light: #6d5697; $custom-dark: #000000;
JSON
{
"hex": "#2a176c",
"rgb": {
"r": 42,
"g": 23,
"b": 108
},
"hsl": {
"h": 253.412,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.29458,
"c": 0.13675,
"h": 284.5
},
"luminance": 0.02188
}Semantic roles & 50–950 ramp
primary
#2A176C
secondary
#8BA23D
accent
#E840C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E