#2A176A#2A176A
#2A176A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.134 H 285.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2A176A |
|---|---|
| RGB | rgb(42, 23, 106) |
| HSL | hsl(254, 64%, 25%) |
| HSV | hsv(254, 78%, 42%) |
| CMYK | cmyk(60.4%, 78.3%, 0%, 58.4%) |
| CIE-LAB | lab(16.23, 32.96, -44.99) |
| CIE-LCH | lch(16.23, 55.78, 306.22°) |
| OKLab | oklab(29.25% 0.0348 -0.1296) |
| OKLCH | oklch(29.25% 0.134 285) |
| XYZ | xyz(3.8620, 2.1454, 13.8435) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.82
Dark Indigo
#1F0954
ΔE00 4.42
Darkblue (survey)
#030764
ΔE00 4.85
Dark Royal Blue
#02066F
ΔE00 5.00
Deep Blue
#040273
ΔE00 5.49
Indigo (survey)
#380282
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A176A #576A17
analogous
#172D6A #2A176A #53176A
triadic
#2A176A #6A2A17 #176A2A
tetradic
#2A176A #6A172D #576A17 #176A53
square
#2A176A #6A172D #576A17 #176A53
split-complementary
#2A176A #6A5317 #2D6A17
monochromatic
#0A0519 #160C38 #2A176A #3E229C #522DCF
Accessibility & contrast
On white
14.69
#2A176A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2A176A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A176A
14.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A176A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A176A | 1.00 | 14.69 | 1.43 | 14.69 |
| #FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#092E3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2a176a; /* rgb */ color: rgb(42, 23, 106); /* oklch */ color: oklch(29.2% 0.134 285.0);
Tailwind
colors: {
custom: {
50: '#6c5695',
500: '#2a176a',
950: '#000000',
},
}SCSS
$custom: #2a176a; $custom-light: #6c5695; $custom-dark: #000000;
JSON
{
"hex": "#2a176a",
"rgb": {
"r": 42,
"g": 23,
"b": 106
},
"hsl": {
"h": 253.735,
"s": 64.341,
"l": 25.294
},
"oklch": {
"l": 0.29247,
"c": 0.13416,
"h": 285
},
"luminance": 0.02146
}Semantic roles & 50–950 ramp
primary
#2A176A
secondary
#89A03D
accent
#E740C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E