#31136E#31136E
#31136E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.143 H 289.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).
Color values
| HEX | #31136E |
|---|---|
| RGB | rgb(49, 19, 110) |
| HSL | hsl(260, 71%, 25%) |
| HSV | hsv(260, 83%, 43%) |
| CMYK | cmyk(55.5%, 82.7%, 0%, 56.9%) |
| CIE-LAB | lab(16.72, 37.31, -46.78) |
| CIE-LCH | lch(16.72, 59.83, 308.58°) |
| OKLab | oklab(29.9% 0.0483 -0.1345) |
| OKLCH | oklch(29.9% 0.143 289.8) |
| XYZ | xyz(4.3132, 2.2443, 14.9548) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.08
Dark Indigo
#1F0954
ΔE00 4.93
Dark Royal Blue
#02066F
ΔE00 5.18
Deep Blue
#040273
ΔE00 5.37
Darkblue (survey)
#030764
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31136E #506E13
analogous
#13236E #31136E #5E136E
triadic
#31136E #6E3113 #136E31
tetradic
#31136E #6E1323 #506E13 #136E5E
square
#31136E #6E1323 #506E13 #136E5E
split-complementary
#31136E #6E5E13 #236E13
monochromatic
#0C051A #1A0A3A #31136E #481CA2 #5F25D6
Accessibility & contrast
On white
14.49
#31136E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#31136E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31136E
14.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31136E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31136E | 1.00 | 14.49 | 1.45 | 14.49 |
| #FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#1A2D40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #31136e; /* rgb */ color: rgb(49, 19, 110); /* oklch */ color: oklch(29.9% 0.143 289.8);
Tailwind
colors: {
custom: {
50: '#715599',
500: '#31136e',
950: '#000000',
},
}SCSS
$custom: #31136e; $custom-light: #715599; $custom-dark: #000000;
JSON
{
"hex": "#31136e",
"rgb": {
"r": 49,
"g": 19,
"b": 110
},
"hsl": {
"h": 259.78,
"s": 70.543,
"l": 25.294
},
"oklch": {
"l": 0.29903,
"c": 0.14291,
"h": 289.8
},
"luminance": 0.02245
}Semantic roles & 50–950 ramp
primary
#31136E
secondary
#81A538
accent
#ED3AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E