#29177F#29177F
#29177F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.161 H 279.7°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #29177F |
|---|---|
| RGB | rgb(41, 23, 127) |
| HSL | hsl(250, 69%, 29%) |
| HSV | hsv(250, 82%, 50%) |
| CMYK | cmyk(67.7%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(18.44, 39.54, -54.91) |
| CIE-LCH | lch(18.44, 67.67, 305.76°) |
| OKLab | oklab(31.45% 0.0271 -0.1585) |
| OKLCH | oklch(31.45% 0.161 279.7) |
| XYZ | xyz(5.0504, 2.6161, 20.3134) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.28
Royal
#0C1793
ΔE00 3.59
Indigo (survey)
#380282
ΔE00 3.76
Darkblue
#00008B
ΔE00 4.59
Navy
#000080
ΔE00 4.60
Dark Royal Blue
#02066F
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#29177F #6D7F17
analogous
#17397F #29177F #5D177F
triadic
#29177F #7F2917 #177F29
tetradic
#29177F #7F1739 #6D7F17 #177F5D
square
#29177F #7F1739 #6D7F17 #177F5D
split-complementary
#29177F #7F5D17 #397F17
monochromatic
#08051A #180E4B #29177F #3A20B3 #5236DB
Accessibility & contrast
On white
13.78
#29177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#29177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #29177F
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##29177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##29177F | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #29177f; /* rgb */ color: rgb(41, 23, 127); /* oklch */ color: oklch(31.5% 0.161 279.7);
Tailwind
colors: {
custom: {
50: '#7058a5',
500: '#29177f',
950: '#000000',
},
}SCSS
$custom: #29177f; $custom-light: #7058a5; $custom-dark: #000000;
JSON
{
"hex": "#29177f",
"rgb": {
"r": 41,
"g": 23,
"b": 127
},
"hsl": {
"h": 250.385,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.31453,
"c": 0.16082,
"h": 279.7
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#29177F
secondary
#9FB43E
accent
#EC3CCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F