#331C76#331C76
#331C76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.143 H 287.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #331C76 |
|---|---|
| RGB | rgb(51, 28, 118) |
| HSL | hsl(255, 62%, 29%) |
| HSV | hsv(255, 76%, 46%) |
| CMYK | cmyk(56.8%, 76.3%, 0%, 53.7%) |
| CIE-LAB | lab(19.40, 35.38, -47.54) |
| CIE-LCH | lch(19.40, 59.26, 306.66°) |
| OKLab | oklab(32.08% 0.0419 -0.1367) |
| OKLCH | oklch(32.08% 0.143 287) |
| XYZ | xyz(5.0495, 2.8421, 17.4185) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 4.66
Royal
#0C1793
ΔE00 5.88
Indigo
#4B0082
ΔE00 5.90
Dark Royal Blue
#02066F
ΔE00 6.18
Deep Blue
#040273
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C76 #5F761C
analogous
#1C3276 #331C76 #601C76
triadic
#331C76 #76331C #1C7633
tetradic
#331C76 #761C32 #5F761C #1C7660
square
#331C76 #761C32 #5F761C #1C7660
split-complementary
#331C76 #76601C #32761C
monochromatic
#0B0619 #1E1045 #331C76 #4828A7 #623CD1
Accessibility & contrast
On white
13.39
#331C76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#331C76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C76
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C76 | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#163447
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #331c76; /* rgb */ color: rgb(51, 28, 118); /* oklch */ color: oklch(32.1% 0.143 287.0);
Tailwind
colors: {
custom: {
50: '#735b9e',
500: '#331c76',
950: '#000000',
},
}SCSS
$custom: #331c76; $custom-light: #735b9e; $custom-dark: #000000;
JSON
{
"hex": "#331c76",
"rgb": {
"r": 51,
"g": 28,
"b": 118
},
"hsl": {
"h": 255.333,
"s": 61.644,
"l": 28.627
},
"oklch": {
"l": 0.32084,
"c": 0.143,
"h": 287
},
"luminance": 0.02842
}Semantic roles & 50–950 ramp
primary
#331C76
secondary
#90AA44
accent
#E543BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E