#311E7B#311E7B
#311E7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.147 H 284.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #311E7B |
|---|---|
| RGB | rgb(49, 30, 123) |
| HSL | hsl(252, 61%, 30%) |
| HSV | hsv(252, 76%, 48%) |
| CMYK | cmyk(60.2%, 75.6%, 0%, 51.8%) |
| CIE-LAB | lab(20.09, 35.53, -49.61) |
| CIE-LCH | lch(20.09, 61.02, 305.61°) |
| OKLab | oklab(32.67% 0.0358 -0.1429) |
| OKLCH | oklch(32.67% 0.147 284.1) |
| XYZ | xyz(5.3050, 3.0112, 19.0367) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.52
Indigo (survey)
#380282
ΔE00 4.85
Royal
#0C1793
ΔE00 5.07
Dark Royal Blue
#02066F
ΔE00 6.28
Indigo
#4B0082
ΔE00 6.29
Deep Blue
#040273
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E7B #687B1E
analogous
#1E3A7B #311E7B #5F1E7B
triadic
#311E7B #7B311E #1E7B31
tetradic
#311E7B #7B1E3A #687B1E #1E7B5F
square
#311E7B #7B1E3A #687B1E #1E7B5F
split-complementary
#311E7B #7B5F1E #3A7B1E
monochromatic
#0A0619 #1D124A #311E7B #452AAC #6042D1
Accessibility & contrast
On white
13.11
#311E7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#311E7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E7B
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E7B | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#07384A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311e7b; /* rgb */ color: rgb(49, 30, 123); /* oklch */ color: oklch(32.7% 0.147 284.1);
Tailwind
colors: {
custom: {
50: '#735ca2',
500: '#311e7b',
950: '#000000',
},
}SCSS
$custom: #311e7b; $custom-light: #735ca2; $custom-dark: #000000;
JSON
{
"hex": "#311e7b",
"rgb": {
"r": 49,
"g": 30,
"b": 123
},
"hsl": {
"h": 252.258,
"s": 60.784,
"l": 30
},
"oklch": {
"l": 0.32673,
"c": 0.14731,
"h": 284.1
},
"luminance": 0.03012
}Semantic roles & 50–950 ramp
primary
#311E7B
secondary
#99AE46
accent
#E444C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F