#311A4E#311A4E
#311A4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.092 H 301.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).
Color values
| HEX | #311A4E |
|---|---|
| RGB | rgb(49, 26, 78) |
| HSL | hsl(267, 50%, 20%) |
| HSV | hsv(267, 67%, 31%) |
| CMYK | cmyk(37.2%, 66.7%, 0%, 69.4%) |
| CIE-LAB | lab(15.18, 23.81, -27.94) |
| CIE-LCH | lch(15.18, 36.71, 310.44°) |
| OKLab | oklab(27.9% 0.0475 -0.0793) |
| OKLCH | oklch(27.9% 0.092 301) |
| XYZ | xyz(3.0108, 1.9418, 7.4224) |
| Luminance | 0.0194 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Purple
#35063E
ΔE00 6.07
Dark Indigo
#1F0954
ΔE00 6.26
Dark Violet
#34013F
ΔE00 6.54
Midnight Purple
#280137
ΔE00 6.60
Deep Purple
#36013F
ΔE00 6.76
Very Dark Purple
#2A0134
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311A4E #374E1A
analogous
#1A1D4E #311A4E #4B1A4E
triadic
#311A4E #4E311A #1A4E31
tetradic
#311A4E #4E1A1D #374E1A #1A4E4B
square
#311A4E #4E1A1D #374E1A #1A4E4B
split-complementary
#311A4E #4E4B1A #1D4E1A
monochromatic
#0E0817 #140B20 #311A4E #4E297C #6B39AA
Accessibility & contrast
On white
15.13
#311A4E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#311A4E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311A4E
15.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311A4E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311A4E | 1.00 | 15.13 | 1.39 | 15.13 |
| #FFFFFF | 15.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#09264D
Tritanopia (blue-blind)
#2B2531
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #311a4e; /* rgb */ color: rgb(49, 26, 78); /* oklch */ color: oklch(27.9% 0.092 301.0);
Tailwind
colors: {
custom: {
50: '#6c5880',
500: '#311a4e',
950: '#000000',
},
}SCSS
$custom: #311a4e; $custom-light: #6c5880; $custom-dark: #000000;
JSON
{
"hex": "#311a4e",
"rgb": {
"r": 49,
"g": 26,
"b": 78
},
"hsl": {
"h": 266.538,
"s": 50,
"l": 20.392
},
"oklch": {
"l": 0.27898,
"c": 0.09242,
"h": 301
},
"luminance": 0.01942
}Semantic roles & 50–950 ramp
primary
#311A4E
secondary
#668440
accent
#DA4E9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C