#321D7C#321D7C
#321D7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.150 H 284.7°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #321D7C |
|---|---|
| RGB | rgb(50, 29, 124) |
| HSL | hsl(253, 62%, 30%) |
| HSV | hsv(253, 77%, 49%) |
| CMYK | cmyk(59.7%, 76.6%, 0%, 51.4%) |
| CIE-LAB | lab(20.09, 36.55, -50.24) |
| CIE-LCH | lch(20.09, 62.13, 306.04°) |
| OKLab | oklab(32.73% 0.0379 -0.1447) |
| OKLCH | oklch(32.73% 0.15 284.7) |
| XYZ | xyz(5.3917, 3.0117, 19.3621) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.71
Indigo (survey)
#380282
ΔE00 4.50
Royal
#0C1793
ΔE00 4.97
Indigo
#4B0082
ΔE00 5.94
Dark Royal Blue
#02066F
ΔE00 6.23
Navy
#000080
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321D7C #677C1D
analogous
#1D387C #321D7C #611D7C
triadic
#321D7C #7C321D #1D7C32
tetradic
#321D7C #7C1D38 #677C1D #1D7C61
square
#321D7C #7C1D38 #677C1D #1D7C61
split-complementary
#321D7C #7C611D #387C1D
monochromatic
#0A0619 #1E114A #321D7C #4629AE #6141D3
Accessibility & contrast
On white
13.11
#321D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#321D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321D7C
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321D7C | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#0A374B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #321d7c; /* rgb */ color: rgb(50, 29, 124); /* oklch */ color: oklch(32.7% 0.150 284.7);
Tailwind
colors: {
custom: {
50: '#735ca3',
500: '#321d7c',
950: '#000000',
},
}SCSS
$custom: #321d7c; $custom-light: #735ca3; $custom-dark: #000000;
JSON
{
"hex": "#321d7c",
"rgb": {
"r": 50,
"g": 29,
"b": 124
},
"hsl": {
"h": 253.263,
"s": 62.092,
"l": 30
},
"oklch": {
"l": 0.32729,
"c": 0.14959,
"h": 284.7
},
"luminance": 0.03012
}Semantic roles & 50–950 ramp
primary
#321D7C
secondary
#98B045
accent
#E543C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F