#31167E#31167E
#31167E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.159 H 284.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #31167E |
|---|---|
| RGB | rgb(49, 22, 126) |
| HSL | hsl(256, 70%, 29%) |
| HSV | hsv(256, 83%, 49%) |
| CMYK | cmyk(61.1%, 82.5%, 0%, 50.6%) |
| CIE-LAB | lab(18.94, 40.64, -53.41) |
| CIE-LCH | lch(18.94, 67.11, 307.26°) |
| OKLab | oklab(31.96% 0.0408 -0.1539) |
| OKLCH | oklch(31.96% 0.159 284.8) |
| XYZ | xyz(5.3183, 2.7328, 19.9819) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.00
Midnight Blue
#191970
ΔE00 4.07
Royal
#0C1793
ΔE00 4.47
Indigo
#4B0082
ΔE00 4.98
Darkblue
#00008B
ΔE00 5.14
Navy
#000080
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31167E #637E16
analogous
#162F7E #31167E #65167E
triadic
#31167E #7E3116 #167E31
tetradic
#31167E #7E162F #637E16 #167E65
square
#31167E #7E162F #637E16 #167E65
split-complementary
#31167E #7E6516 #2F7E16
monochromatic
#0A051A #1D0D4A #31167E #451FB2 #5F33DB
Accessibility & contrast
On white
13.58
#31167E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#31167E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31167E
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31167E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31167E | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#02354A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #31167e; /* rgb */ color: rgb(49, 22, 126); /* oklch */ color: oklch(32.0% 0.159 284.8);
Tailwind
colors: {
custom: {
50: '#7458a4',
500: '#31167e',
950: '#000000',
},
}SCSS
$custom: #31167e; $custom-light: #7458a4; $custom-dark: #000000;
JSON
{
"hex": "#31167e",
"rgb": {
"r": 49,
"g": 22,
"b": 126
},
"hsl": {
"h": 255.577,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.31963,
"c": 0.15923,
"h": 284.8
},
"luminance": 0.02733
}Semantic roles & 50–950 ramp
primary
#31167E
secondary
#94B33D
accent
#ED3BBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F