#31186F#31186F
#31186F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.139 H 288.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #31186F |
|---|---|
| RGB | rgb(49, 24, 111) |
| HSL | hsl(257, 64%, 26%) |
| HSV | hsv(257, 78%, 44%) |
| CMYK | cmyk(55.9%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(17.71, 35.07, -45.80) |
| CIE-LCH | lch(17.71, 57.69, 307.44°) |
| OKLab | oklab(30.63% 0.044 -0.1317) |
| OKLCH | oklch(30.63% 0.139 288.5) |
| XYZ | xyz(4.4617, 2.4537, 15.2744) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.61
Indigo (survey)
#380282
ΔE00 4.71
Dark Indigo
#1F0954
ΔE00 5.35
Dark Royal Blue
#02066F
ΔE00 5.64
Darkblue (survey)
#030764
ΔE00 5.79
Deep Blue
#040273
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31186F #566F18
analogous
#182B6F #31186F #5D186F
triadic
#31186F #6F3118 #186F31
tetradic
#31186F #6F182B #566F18 #186F5D
square
#31186F #6F182B #566F18 #186F5D
split-complementary
#31186F #6F5D18 #2B6F18
monochromatic
#0B0519 #1B0D3D #31186F #4723A1 #5E2FD2
Accessibility & contrast
On white
14.09
#31186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#31186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31186F
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31186F | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#193042
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #31186f; /* rgb */ color: rgb(49, 24, 111); /* oklch */ color: oklch(30.6% 0.139 288.5);
Tailwind
colors: {
custom: {
50: '#715899',
500: '#31186f',
950: '#000000',
},
}SCSS
$custom: #31186f; $custom-light: #715899; $custom-dark: #000000;
JSON
{
"hex": "#31186f",
"rgb": {
"r": 49,
"g": 24,
"b": 111
},
"hsl": {
"h": 257.241,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.30625,
"c": 0.13884,
"h": 288.5
},
"luminance": 0.02454
}Semantic roles & 50–950 ramp
primary
#31186F
secondary
#87A53E
accent
#E740B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E