#2A177F#2A177F
#2A177F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.161 H 280.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2A177F |
|---|---|
| RGB | rgb(42, 23, 127) |
| HSL | hsl(251, 69%, 29%) |
| HSV | hsv(251, 82%, 50%) |
| CMYK | cmyk(66.9%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(18.53, 39.65, -54.75) |
| CIE-LCH | lch(18.53, 67.60, 305.91°) |
| OKLab | oklab(31.54% 0.0286 -0.1581) |
| OKLCH | oklch(31.54% 0.161 280.3) |
| XYZ | xyz(5.0908, 2.6369, 20.3153) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.36
Royal
#0C1793
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 3.67
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 4.67
Dark Royal Blue
#02066F
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A177F #6C7F17
analogous
#17387F #2A177F #5E177F
triadic
#2A177F #7F2A17 #177F2A
tetradic
#2A177F #7F1738 #6C7F17 #177F5E
square
#2A177F #7F1738 #6C7F17 #177F5E
split-complementary
#2A177F #7F5E17 #387F17
monochromatic
#09051A #190E4B #2A177F #3B20B3 #5436DB
Accessibility & contrast
On white
13.75
#2A177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2A177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A177F
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A177F | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2a177f; /* rgb */ color: rgb(42, 23, 127); /* oklch */ color: oklch(31.5% 0.161 280.3);
Tailwind
colors: {
custom: {
50: '#7158a5',
500: '#2a177f',
950: '#000000',
},
}SCSS
$custom: #2a177f; $custom-light: #7158a5; $custom-dark: #000000;
JSON
{
"hex": "#2a177f",
"rgb": {
"r": 42,
"g": 23,
"b": 127
},
"hsl": {
"h": 250.962,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.31539,
"c": 0.16063,
"h": 280.3
},
"luminance": 0.02637
}Semantic roles & 50–950 ramp
primary
#2A177F
secondary
#9EB43E
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F