#331C6F#331C6F
#331C6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.134 H 289.0°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).
Color values
| HEX | #331C6F |
|---|---|
| RGB | rgb(51, 28, 111) |
| HSL | hsl(257, 60%, 27%) |
| HSV | hsv(257, 75%, 44%) |
| CMYK | cmyk(54.1%, 74.8%, 0%, 56.5%) |
| CIE-LAB | lab(18.72, 33.19, -44.13) |
| CIE-LCH | lch(18.72, 55.22, 306.95°) |
| OKLab | oklab(31.4% 0.0435 -0.1268) |
| OKLCH | oklch(31.4% 0.134 289) |
| XYZ | xyz(4.6489, 2.6818, 15.3085) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.85
Indigo (survey)
#380282
ΔE00 5.44
Dark Indigo
#1F0954
ΔE00 5.86
Indigo
#4B0082
ΔE00 6.42
Dark Royal Blue
#02066F
ΔE00 6.46
Darkblue (survey)
#030764
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C6F #586F1C
analogous
#1C2E6F #331C6F #5D1C6F
triadic
#331C6F #6F331C #1C6F33
tetradic
#331C6F #6F1C2E #586F1C #1C6F5D
square
#331C6F #6F1C2E #586F1C #1C6F5D
split-complementary
#331C6F #6F5D1C #2E6F1C
monochromatic
#0B0618 #1D103E #331C6F #4928A0 #6238CD
Accessibility & contrast
On white
13.67
#331C6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#331C6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C6F
13.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C6F | 1.00 | 13.67 | 1.54 | 13.67 |
| #FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#1D3243
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #331c6f; /* rgb */ color: rgb(51, 28, 111); /* oklch */ color: oklch(31.4% 0.134 289.0);
Tailwind
colors: {
custom: {
50: '#725a99',
500: '#331c6f',
950: '#000000',
},
}SCSS
$custom: #331c6f; $custom-light: #725a99; $custom-dark: #000000;
JSON
{
"hex": "#331c6f",
"rgb": {
"r": 51,
"g": 28,
"b": 111
},
"hsl": {
"h": 256.627,
"s": 59.712,
"l": 27.255
},
"oklch": {
"l": 0.31395,
"c": 0.13403,
"h": 289
},
"luminance": 0.02682
}Semantic roles & 50–950 ramp
primary
#331C6F
secondary
#89A443
accent
#E345B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E