#31146F#31146F
#31146F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.143 H 289.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #31146F |
|---|---|
| RGB | rgb(49, 20, 111) |
| HSL | hsl(259, 69%, 26%) |
| HSV | hsv(259, 82%, 44%) |
| CMYK | cmyk(55.9%, 82%, 0%, 56.5%) |
| CIE-LAB | lab(16.99, 37.12, -46.98) |
| CIE-LCH | lch(16.99, 59.87, 308.31°) |
| OKLab | oklab(30.13% 0.0472 -0.1351) |
| OKLCH | oklch(30.13% 0.143 289.3) |
| XYZ | xyz(4.3852, 2.3008, 15.2489) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.94
Indigo (survey)
#380282
ΔE00 4.07
Dark Indigo
#1F0954
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.21
Deep Blue
#040273
ΔE00 5.41
Darkblue (survey)
#030764
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31146F #526F14
analogous
#14246F #31146F #5E146F
triadic
#31146F #6F3114 #146F31
tetradic
#31146F #6F1424 #526F14 #146F5E
square
#31146F #6F1424 #526F14 #146F5E
split-complementary
#31146F #6F5E14 #246F14
monochromatic
#0B051A #1A0B3B #31146F #481DA3 #5F27D7
Accessibility & contrast
On white
14.38
#31146F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#31146F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31146F
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31146F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31146F | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#192E41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #31146f; /* rgb */ color: rgb(49, 20, 111); /* oklch */ color: oklch(30.1% 0.143 289.3);
Tailwind
colors: {
custom: {
50: '#715699',
500: '#31146f',
950: '#000000',
},
}SCSS
$custom: #31146f; $custom-light: #715699; $custom-dark: #000000;
JSON
{
"hex": "#31146f",
"rgb": {
"r": 49,
"g": 20,
"b": 111
},
"hsl": {
"h": 259.121,
"s": 69.466,
"l": 25.686
},
"oklch": {
"l": 0.30125,
"c": 0.14311,
"h": 289.3
},
"luminance": 0.02301
}Semantic roles & 50–950 ramp
primary
#31146F
secondary
#83A639
accent
#EC3CB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E