#31177E#31177E
#31177E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 284.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #31177E |
|---|---|
| RGB | rgb(49, 23, 126) |
| HSL | hsl(255, 69%, 29%) |
| HSV | hsv(255, 82%, 49%) |
| CMYK | cmyk(61.1%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(19.11, 40.16, -53.14) |
| CIE-LCH | lch(19.11, 66.61, 307.08°) |
| OKLab | oklab(32.08% 0.0401 -0.1531) |
| OKLCH | oklch(32.08% 0.158 284.7) |
| XYZ | xyz(5.3378, 2.7718, 19.9884) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.19
Midnight Blue
#191970
ΔE00 4.00
Royal
#0C1793
ΔE00 4.46
Indigo
#4B0082
ΔE00 5.10
Darkblue
#00008B
ΔE00 5.26
Navy
#000080
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31177E #647E17
analogous
#17307E #31177E #65177E
triadic
#31177E #7E3117 #177E31
tetradic
#31177E #7E1730 #647E17 #177E65
square
#31177E #7E1730 #647E17 #177E65
split-complementary
#31177E #7E6517 #307E17
monochromatic
#0A051A #1D0E4A #31177E #4520B2 #5F35DA
Accessibility & contrast
On white
13.51
#31177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#31177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31177E
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31177E | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#02364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #31177e; /* rgb */ color: rgb(49, 23, 126); /* oklch */ color: oklch(32.1% 0.158 284.7);
Tailwind
colors: {
custom: {
50: '#7458a4',
500: '#31177e',
950: '#000000',
},
}SCSS
$custom: #31177e; $custom-light: #7458a4; $custom-dark: #000000;
JSON
{
"hex": "#31177e",
"rgb": {
"r": 49,
"g": 23,
"b": 126
},
"hsl": {
"h": 255.146,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.32077,
"c": 0.15831,
"h": 284.7
},
"luminance": 0.02772
}Semantic roles & 50–950 ramp
primary
#31177E
secondary
#95B33E
accent
#EC3CBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F