#311F7D#311F7D
#311F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.149 H 283.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #311F7D |
|---|---|
| RGB | rgb(49, 31, 125) |
| HSL | hsl(251, 60%, 31%) |
| HSV | hsv(251, 75%, 49%) |
| CMYK | cmyk(60.8%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.49, 35.60, -50.22) |
| CIE-LCH | lch(20.49, 61.56, 305.33°) |
| OKLab | oklab(33.02% 0.0345 -0.1447) |
| OKLCH | oklch(33.02% 0.149 283.4) |
| XYZ | xyz(5.4571, 3.1133, 19.7114) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.66
Royal
#0C1793
ΔE00 4.88
Indigo (survey)
#380282
ΔE00 4.99
Indigo
#4B0082
ΔE00 6.42
Dark Royal Blue
#02066F
ΔE00 6.47
Darkblue
#00008B
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311F7D #6B7D1F
analogous
#1F3C7D #311F7D #601F7D
triadic
#311F7D #7D311F #1F7D31
tetradic
#311F7D #7D1F3C #6B7D1F #1F7D60
square
#311F7D #7D1F3C #6B7D1F #1F7D60
split-complementary
#311F7D #7D601F #3C7D1F
monochromatic
#0B071B #1E134C #311F7D #442BAE #6045D1
Accessibility & contrast
On white
12.94
#311F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#311F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311F7D
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311F7D | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#03394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311f7d; /* rgb */ color: rgb(49, 31, 125); /* oklch */ color: oklch(33.0% 0.149 283.4);
Tailwind
colors: {
custom: {
50: '#735da4',
500: '#311f7d',
950: '#000000',
},
}SCSS
$custom: #311f7d; $custom-light: #735da4; $custom-dark: #000000;
JSON
{
"hex": "#311f7d",
"rgb": {
"r": 49,
"g": 31,
"b": 125
},
"hsl": {
"h": 251.489,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.33019,
"c": 0.14875,
"h": 283.4
},
"luminance": 0.03114
}Semantic roles & 50–950 ramp
primary
#311F7D
secondary
#9CB048
accent
#E344C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F