#321D7F#321D7F
#321D7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.153 H 284.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #321D7F |
|---|---|
| RGB | rgb(50, 29, 127) |
| HSL | hsl(253, 63%, 31%) |
| HSV | hsv(253, 77%, 50%) |
| CMYK | cmyk(60.6%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.40, 37.50, -51.65) |
| CIE-LCH | lch(20.40, 63.82, 305.98°) |
| OKLab | oklab(33.04% 0.0371 -0.1488) |
| OKLCH | oklch(33.04% 0.153 284) |
| XYZ | xyz(5.5843, 3.0888, 20.3765) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 4.37
Royal
#0C1793
ΔE00 4.58
Indigo
#4B0082
ΔE00 5.87
Darkblue
#00008B
ΔE00 6.18
Navy
#000080
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321D7F #6A7F1D
analogous
#1D397F #321D7F #631D7F
triadic
#321D7F #7F321D #1D7F32
tetradic
#321D7F #7F1D39 #6A7F1D #1D7F63
square
#321D7F #7F1D39 #6A7F1D #1D7F63
split-complementary
#321D7F #7F631D #397F1D
monochromatic
#0B061B #1E124D #321D7F #4628B1 #6242D4
Accessibility & contrast
On white
12.98
#321D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#321D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321D7F
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321D7F | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#04394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #321d7f; /* rgb */ color: rgb(50, 29, 127); /* oklch */ color: oklch(33.0% 0.153 284.0);
Tailwind
colors: {
custom: {
50: '#745ca5',
500: '#321d7f',
950: '#000000',
},
}SCSS
$custom: #321d7f; $custom-light: #745ca5; $custom-dark: #000000;
JSON
{
"hex": "#321d7f",
"rgb": {
"r": 50,
"g": 29,
"b": 127
},
"hsl": {
"h": 252.857,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.33037,
"c": 0.15337,
"h": 284
},
"luminance": 0.03089
}Semantic roles & 50–950 ramp
primary
#321D7F
secondary
#9BB245
accent
#E642C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F