#31167C#31167C
#31167C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.157 H 285.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #31167C |
|---|---|
| RGB | rgb(49, 22, 124) |
| HSL | hsl(256, 70%, 29%) |
| HSV | hsv(256, 82%, 49%) |
| CMYK | cmyk(60.5%, 82.3%, 0%, 51.4%) |
| CIE-LAB | lab(18.72, 40.04, -52.50) |
| CIE-LCH | lch(18.72, 66.02, 307.33°) |
| OKLab | oklab(31.75% 0.0414 -0.1513) |
| OKLCH | oklch(31.75% 0.157 285.3) |
| XYZ | xyz(5.1905, 2.6817, 19.3090) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.09
Midnight Blue
#191970
ΔE00 3.94
Royal
#0C1793
ΔE00 4.72
Indigo
#4B0082
ΔE00 5.02
Navy
#000080
ΔE00 5.22
Dark Royal Blue
#02066F
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31167C #617C16
analogous
#162E7C #31167C #64167C
triadic
#31167C #7C3116 #167C31
tetradic
#31167C #7C162E #617C16 #167C64
square
#31167C #7C162E #617C16 #167C64
split-complementary
#31167C #7C6416 #2E7C16
monochromatic
#0A051A #1C0D48 #31167C #461FB0 #5E32DB
Accessibility & contrast
On white
13.67
#31167C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#31167C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31167C
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31167C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31167C | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#063449
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #31167c; /* rgb */ color: rgb(49, 22, 124); /* oklch */ color: oklch(31.7% 0.157 285.3);
Tailwind
colors: {
custom: {
50: '#7358a3',
500: '#31167c',
950: '#000000',
},
}SCSS
$custom: #31167c; $custom-light: #7358a3; $custom-dark: #000000;
JSON
{
"hex": "#31167c",
"rgb": {
"r": 49,
"g": 22,
"b": 124
},
"hsl": {
"h": 255.882,
"s": 69.863,
"l": 28.627
},
"oklch": {
"l": 0.31745,
"c": 0.15683,
"h": 285.3
},
"luminance": 0.02682
}Semantic roles & 50–950 ramp
primary
#31167C
secondary
#92B13D
accent
#ED3BBE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F