#31116F#31116F
#31116F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.146 H 289.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).
Color values
| HEX | #31116F |
|---|---|
| RGB | rgb(49, 17, 111) |
| HSL | hsl(260, 73%, 25%) |
| HSV | hsv(260, 85%, 44%) |
| CMYK | cmyk(55.9%, 84.7%, 0%, 56.5%) |
| CIE-LAB | lab(16.51, 38.52, -47.77) |
| CIE-LCH | lch(16.51, 61.37, 308.88°) |
| OKLab | oklab(29.79% 0.0494 -0.1374) |
| OKLCH | oklch(29.79% 0.146 289.8) |
| XYZ | xyz(4.3355, 2.2014, 15.2323) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.69
Midnight Blue
#191970
ΔE00 4.24
Dark Royal Blue
#02066F
ΔE00 4.99
Dark Indigo
#1F0954
ΔE00 5.02
Deep Blue
#040273
ΔE00 5.11
Indigo
#4B0082
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31116F #4F6F11
analogous
#11206F #31116F #60116F
triadic
#31116F #6F3111 #116F31
tetradic
#31116F #6F1120 #4F6F11 #116F60
square
#31116F #6F1120 #4F6F11 #116F60
split-complementary
#31116F #6F6011 #206F11
monochromatic
#0C041B #1A093A #31116F #4819A4 #6021D9
Accessibility & contrast
On white
14.58
#31116F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#31116F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31116F
14.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31116F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31116F | 1.00 | 14.58 | 1.44 | 14.58 |
| #FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#192D41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #31116f; /* rgb */ color: rgb(49, 17, 111); /* oklch */ color: oklch(29.8% 0.146 289.8);
Tailwind
colors: {
custom: {
50: '#715499',
500: '#31116f',
950: '#000000',
},
}SCSS
$custom: #31116f; $custom-light: #715499; $custom-dark: #000000;
JSON
{
"hex": "#31116f",
"rgb": {
"r": 49,
"g": 17,
"b": 111
},
"hsl": {
"h": 260.426,
"s": 73.438,
"l": 25.098
},
"oklch": {
"l": 0.2979,
"c": 0.146,
"h": 289.8
},
"luminance": 0.02202
}Semantic roles & 50–950 ramp
primary
#31116F
secondary
#80A635
accent
#F038B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E