#31167F#31167F
#31167F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 284.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #31167F |
|---|---|
| RGB | rgb(49, 22, 127) |
| HSL | hsl(255, 70%, 29%) |
| HSV | hsv(255, 83%, 50%) |
| CMYK | cmyk(61.4%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(19.05, 40.94, -53.87) |
| CIE-LCH | lch(19.05, 67.66, 307.23°) |
| OKLab | oklab(32.07% 0.0404 -0.1552) |
| OKLCH | oklch(32.07% 0.16 284.6) |
| XYZ | xyz(5.3831, 2.7587, 20.3234) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.97
Midnight Blue
#191970
ΔE00 4.15
Royal
#0C1793
ΔE00 4.35
Indigo
#4B0082
ΔE00 4.97
Darkblue
#00008B
ΔE00 5.07
Navy
#000080
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31167F #647F16
analogous
#162F7F #31167F #66167F
triadic
#31167F #7F3116 #167F31
tetradic
#31167F #7F162F #647F16 #167F66
square
#31167F #7F162F #647F16 #167F66
split-complementary
#31167F #7F6616 #2F7F16
monochromatic
#0A051A #1D0D4B #31167F #451FB3 #5F34DC
Accessibility & contrast
On white
13.53
#31167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#31167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31167F
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31167F | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #31167f; /* rgb */ color: rgb(49, 22, 127); /* oklch */ color: oklch(32.1% 0.160 284.6);
Tailwind
colors: {
custom: {
50: '#7458a5',
500: '#31167f',
950: '#000000',
},
}SCSS
$custom: #31167f; $custom-light: #7458a5; $custom-dark: #000000;
JSON
{
"hex": "#31167f",
"rgb": {
"r": 49,
"g": 22,
"b": 127
},
"hsl": {
"h": 255.429,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.32072,
"c": 0.16042,
"h": 284.6
},
"luminance": 0.02759
}Semantic roles & 50–950 ramp
primary
#31167F
secondary
#95B43D
accent
#ED3BBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F