#311E76#311E76
#311E76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.141 H 285.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #311E76 |
|---|---|
| RGB | rgb(49, 30, 118) |
| HSL | hsl(253, 59%, 29%) |
| HSV | hsv(253, 75%, 46%) |
| CMYK | cmyk(58.5%, 74.6%, 0%, 53.7%) |
| CIE-LAB | lab(19.59, 33.92, -47.23) |
| CIE-LCH | lch(19.59, 58.15, 305.69°) |
| OKLab | oklab(32.17% 0.037 -0.1359) |
| OKLCH | oklch(32.17% 0.141 285.2) |
| XYZ | xyz(4.9999, 2.8892, 17.4302) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 5.22
Royal
#0C1793
ΔE00 5.80
Dark Royal Blue
#02066F
ΔE00 6.30
Indigo
#4B0082
ΔE00 6.53
Deep Blue
#040273
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E76 #63761E
analogous
#1E3776 #311E76 #5D1E76
triadic
#311E76 #76311E #1E7631
tetradic
#311E76 #761E37 #63761E #1E765D
square
#311E76 #761E37 #63761E #1E765D
split-complementary
#311E76 #765D1E #37761E
monochromatic
#0A0618 #1D1245 #311E76 #452AA7 #5F40CE
Accessibility & contrast
On white
13.31
#311E76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#311E76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E76
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E76 | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#103648
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #311e76; /* rgb */ color: rgb(49, 30, 118); /* oklch */ color: oklch(32.2% 0.141 285.2);
Tailwind
colors: {
custom: {
50: '#725c9e',
500: '#311e76',
950: '#000000',
},
}SCSS
$custom: #311e76; $custom-light: #725c9e; $custom-dark: #000000;
JSON
{
"hex": "#311e76",
"rgb": {
"r": 49,
"g": 30,
"b": 118
},
"hsl": {
"h": 252.955,
"s": 59.459,
"l": 29.02
},
"oklch": {
"l": 0.32171,
"c": 0.14085,
"h": 285.2
},
"luminance": 0.0289
}Semantic roles & 50–950 ramp
primary
#311E76
secondary
#94AA46
accent
#E345C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E