#31136F#31136F
#31136F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.144 H 289.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).
Color values
| HEX | #31136F |
|---|---|
| RGB | rgb(49, 19, 111) |
| HSL | hsl(260, 71%, 25%) |
| HSV | hsv(260, 83%, 44%) |
| CMYK | cmyk(55.9%, 82.9%, 0%, 56.5%) |
| CIE-LAB | lab(16.83, 37.60, -47.25) |
| CIE-LCH | lch(16.83, 60.39, 308.51°) |
| OKLab | oklab(30.01% 0.048 -0.1359) |
| OKLCH | oklch(30.01% 0.144 289.4) |
| XYZ | xyz(4.3679, 2.2662, 15.2431) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.93
Midnight Blue
#191970
ΔE00 4.04
Dark Indigo
#1F0954
ΔE00 5.07
Dark Royal Blue
#02066F
ΔE00 5.13
Deep Blue
#040273
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31136F #516F13
analogous
#13236F #31136F #5F136F
triadic
#31136F #6F3113 #136F31
tetradic
#31136F #6F1323 #516F13 #136F5F
square
#31136F #6F1323 #516F13 #136F5F
split-complementary
#31136F #6F5F13 #236F13
monochromatic
#0C041A #1A0A3B #31136F #481CA3 #5F25D8
Accessibility & contrast
On white
14.45
#31136F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#31136F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31136F
14.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31136F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31136F | 1.00 | 14.45 | 1.45 | 14.45 |
| #FFFFFF | 14.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#192E41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #31136f; /* rgb */ color: rgb(49, 19, 111); /* oklch */ color: oklch(30.0% 0.144 289.4);
Tailwind
colors: {
custom: {
50: '#715599',
500: '#31136f',
950: '#000000',
},
}SCSS
$custom: #31136f; $custom-light: #715599; $custom-dark: #000000;
JSON
{
"hex": "#31136f",
"rgb": {
"r": 49,
"g": 19,
"b": 111
},
"hsl": {
"h": 259.565,
"s": 70.769,
"l": 25.49
},
"oklch": {
"l": 0.30009,
"c": 0.14411,
"h": 289.4
},
"luminance": 0.02266
}Semantic roles & 50–950 ramp
primary
#31136F
secondary
#82A638
accent
#EE3AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E