#31197B#31197B
#31197B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 285.1°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #31197B |
|---|---|
| RGB | rgb(49, 25, 123) |
| HSL | hsl(255, 66%, 29%) |
| HSV | hsv(255, 80%, 48%) |
| CMYK | cmyk(60.2%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(19.13, 38.24, -51.19) |
| CIE-LCH | lch(19.13, 63.89, 306.76°) |
| OKLab | oklab(32% 0.0397 -0.1475) |
| OKLCH | oklch(32% 0.153 285.1) |
| XYZ | xyz(5.1883, 2.7780, 18.9979) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 3.73
Royal
#0C1793
ΔE00 4.86
Indigo
#4B0082
ΔE00 5.44
Dark Royal Blue
#02066F
ΔE00 5.58
Deep Blue
#040273
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31197B #637B19
analogous
#19327B #31197B #62197B
triadic
#31197B #7B3119 #197B31
tetradic
#31197B #7B1932 #637B19 #197B62
square
#31197B #7B1932 #637B19 #197B62
split-complementary
#31197B #7B6219 #327B19
monochromatic
#0A0519 #1D0F48 #31197B #4523AE #5F38D7
Accessibility & contrast
On white
13.50
#31197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#31197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31197B
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31197B | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#083549
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #31197b; /* rgb */ color: rgb(49, 25, 123); /* oklch */ color: oklch(32.0% 0.153 285.1);
Tailwind
colors: {
custom: {
50: '#7359a2',
500: '#31197b',
950: '#000000',
},
}SCSS
$custom: #31197b; $custom-light: #7359a2; $custom-dark: #000000;
JSON
{
"hex": "#31197b",
"rgb": {
"r": 49,
"g": 25,
"b": 123
},
"hsl": {
"h": 254.694,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.31999,
"c": 0.1527,
"h": 285.1
},
"luminance": 0.02778
}Semantic roles & 50–950 ramp
primary
#31197B
secondary
#94AF40
accent
#E93FBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F