#31187F#31187F
#31187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.159 H 284.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #31187F |
|---|---|
| RGB | rgb(49, 24, 127) |
| HSL | hsl(255, 68%, 30%) |
| HSV | hsv(255, 81%, 50%) |
| CMYK | cmyk(61.4%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(19.38, 39.97, -53.32) |
| CIE-LCH | lch(19.38, 66.63, 306.86°) |
| OKLab | oklab(32.3% 0.0391 -0.1537) |
| OKLCH | oklch(32.3% 0.159 284.3) |
| XYZ | xyz(5.4228, 2.8382, 20.3366) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.35
Midnight Blue
#191970
ΔE00 4.00
Royal
#0C1793
ΔE00 4.33
Indigo
#4B0082
ΔE00 5.22
Darkblue
#00008B
ΔE00 5.32
Navy
#000080
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31187F #667F18
analogous
#18337F #31187F #65187F
triadic
#31187F #7F3118 #187F31
tetradic
#31187F #7F1833 #667F18 #187F65
square
#31187F #7F1833 #667F18 #187F65
split-complementary
#31187F #7F6518 #337F18
monochromatic
#0A051A #1D0E4C #31187F #4522B2 #5F38D9
Accessibility & contrast
On white
13.39
#31187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#31187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31187F
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31187F | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #31187f; /* rgb */ color: rgb(49, 24, 127); /* oklch */ color: oklch(32.3% 0.159 284.3);
Tailwind
colors: {
custom: {
50: '#7459a5',
500: '#31187f',
950: '#000000',
},
}SCSS
$custom: #31187f; $custom-light: #7459a5; $custom-dark: #000000;
JSON
{
"hex": "#31187f",
"rgb": {
"r": 49,
"g": 24,
"b": 127
},
"hsl": {
"h": 254.563,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.32303,
"c": 0.15857,
"h": 284.3
},
"luminance": 0.02839
}Semantic roles & 50–950 ramp
primary
#31187F
secondary
#97B33F
accent
#EB3DC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F