#331E7A#331E7A
#331E7A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.146 H 285.6°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).
Color values
| HEX | #331E7A |
|---|---|
| RGB | rgb(51, 30, 122) |
| HSL | hsl(254, 61%, 30%) |
| HSV | hsv(254, 75%, 48%) |
| CMYK | cmyk(58.2%, 75.4%, 0%, 52.2%) |
| CIE-LAB | lab(20.19, 35.52, -48.80) |
| CIE-LCH | lch(20.19, 60.35, 306.05°) |
| OKLab | oklab(32.77% 0.0392 -0.1404) |
| OKLCH | oklch(32.77% 0.146 285.6) |
| XYZ | xyz(5.3413, 3.0372, 18.7134) |
| Luminance | 0.0304 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 4.81
Royal
#0C1793
ΔE00 5.41
Indigo
#4B0082
ΔE00 6.08
Dark Royal Blue
#02066F
ΔE00 6.46
Deep Blue
#040273
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331E7A #657A1E
analogous
#1E377A #331E7A #611E7A
triadic
#331E7A #7A331E #1E7A33
tetradic
#331E7A #7A1E37 #657A1E #1E7A61
square
#331E7A #7A1E37 #657A1E #1E7A61
split-complementary
#331E7A #7A611E #377A1E
monochromatic
#0A0619 #1E1249 #331E7A #482AAB #6242D0
Accessibility & contrast
On white
13.06
#331E7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#331E7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331E7A
13.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331E7A | 1.00 | 13.06 | 1.61 | 13.06 |
| #FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#11374A
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #331e7a; /* rgb */ color: rgb(51, 30, 122); /* oklch */ color: oklch(32.8% 0.146 285.6);
Tailwind
colors: {
custom: {
50: '#735ca1',
500: '#331e7a',
950: '#000000',
},
}SCSS
$custom: #331e7a; $custom-light: #735ca1; $custom-dark: #000000;
JSON
{
"hex": "#331e7a",
"rgb": {
"r": 51,
"g": 30,
"b": 122
},
"hsl": {
"h": 253.696,
"s": 60.526,
"l": 29.804
},
"oklch": {
"l": 0.32765,
"c": 0.14579,
"h": 285.6
},
"luminance": 0.03037
}Semantic roles & 50–950 ramp
primary
#331E7A
secondary
#96AE46
accent
#E444BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F