#31146C#31146C
#31146C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.139 H 290.2°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).
Color values
| HEX | #31146C |
|---|---|
| RGB | rgb(49, 20, 108) |
| HSL | hsl(260, 69%, 25%) |
| HSV | hsv(260, 81%, 42%) |
| CMYK | cmyk(54.6%, 81.5%, 0%, 57.6%) |
| CIE-LAB | lab(16.68, 36.23, -45.54) |
| CIE-LCH | lch(16.68, 58.19, 308.51°) |
| OKLab | oklab(29.81% 0.0482 -0.1309) |
| OKLCH | oklch(29.81% 0.139 290.2) |
| XYZ | xyz(4.2228, 2.2358, 14.3935) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.50
Dark Indigo
#1F0954
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 5.39
Darkblue (survey)
#030764
ΔE00 5.46
Deep Blue
#040273
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31146C #4F6C14
analogous
#14236C #31146C #5D146C
triadic
#31146C #6C3114 #146C31
tetradic
#31146C #6C1423 #4F6C14 #146C5D
square
#31146C #6C1423 #4F6C14 #146C5D
split-complementary
#31146C #6C5D14 #236C14
monochromatic
#0C051A #1A0A38 #31146C #481EA0 #6027D3
Accessibility & contrast
On white
14.51
#31146C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#31146C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31146C
14.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31146C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31146C | 1.00 | 14.51 | 1.45 | 14.51 |
| #FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#1B2D40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #31146c; /* rgb */ color: rgb(49, 20, 108); /* oklch */ color: oklch(29.8% 0.139 290.2);
Tailwind
colors: {
custom: {
50: '#715597',
500: '#31146c',
950: '#000000',
},
}SCSS
$custom: #31146c; $custom-light: #715597; $custom-dark: #000000;
JSON
{
"hex": "#31146c",
"rgb": {
"r": 49,
"g": 20,
"b": 108
},
"hsl": {
"h": 259.773,
"s": 68.75,
"l": 25.098
},
"oklch": {
"l": 0.29811,
"c": 0.13948,
"h": 290.2
},
"luminance": 0.02236
}Semantic roles & 50–950 ramp
primary
#31146C
secondary
#80A339
accent
#EC3CB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E