#331C8E#331C8E
#331C8E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.173 H 281.7°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #331C8E |
|---|---|
| RGB | rgb(51, 28, 142) |
| HSL | hsl(252, 67%, 33%) |
| HSV | hsv(252, 80%, 56%) |
| CMYK | cmyk(64.1%, 80.3%, 0%, 44.3%) |
| CIE-LAB | lab(21.90, 42.80, -58.59) |
| CIE-LCH | lch(21.90, 72.56, 306.15°) |
| OKLab | oklab(34.59% 0.0351 -0.169) |
| OKLCH | oklch(34.59% 0.173 281.7) |
| XYZ | xyz(6.6614, 3.4868, 25.9079) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.39
Indigo (survey)
#380282
ΔE00 4.30
Cobalt Blue
#030AA7
ΔE00 4.92
Indigo Blue
#3A18B1
ΔE00 4.95
Royal Blue (survey)
#0504AA
ΔE00 5.32
Ultramarine
#2000B1
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C8E #778E1C
analogous
#1C3E8E #331C8E #6C1C8E
triadic
#331C8E #8E331C #1C8E33
tetradic
#331C8E #8E1C3E #778E1C #1C8E6C
square
#331C8E #8E1C3E #778E1C #1C8E6C
split-complementary
#331C8E #8E6C1C #3E8E1C
monochromatic
#0E0828 #21125B #331C8E #4526C1 #6749DB
Accessibility & contrast
On white
12.37
#331C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#331C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C8E
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C8E | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #331c8e; /* rgb */ color: rgb(51, 28, 142); /* oklch */ color: oklch(34.6% 0.173 281.7);
Tailwind
colors: {
custom: {
50: '#785cb0',
500: '#331c8e',
950: '#000000',
},
}SCSS
$custom: #331c8e; $custom-light: #785cb0; $custom-dark: #000000;
JSON
{
"hex": "#331c8e",
"rgb": {
"r": 51,
"g": 28,
"b": 142
},
"hsl": {
"h": 252.105,
"s": 67.059,
"l": 33.333
},
"oklch": {
"l": 0.34587,
"c": 0.17266,
"h": 281.7
},
"luminance": 0.03487
}Semantic roles & 50–950 ramp
primary
#331C8E
secondary
#A6BD49
accent
#EA3EC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980