#321C7C#321C7C
#321C7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 284.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #321C7C |
|---|---|
| RGB | rgb(50, 28, 124) |
| HSL | hsl(254, 63%, 30%) |
| HSV | hsv(254, 77%, 49%) |
| CMYK | cmyk(59.7%, 77.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.90, 37.10, -50.56) |
| CIE-LCH | lch(19.90, 62.71, 306.27°) |
| OKLab | oklab(32.59% 0.0387 -0.1456) |
| OKLCH | oklch(32.59% 0.151 284.9) |
| XYZ | xyz(5.3676, 2.9635, 19.3540) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.73
Indigo (survey)
#380282
ΔE00 4.27
Royal
#0C1793
ΔE00 4.92
Indigo
#4B0082
ΔE00 5.76
Dark Royal Blue
#02066F
ΔE00 6.08
Navy
#000080
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321C7C #667C1C
analogous
#1C367C #321C7C #621C7C
triadic
#321C7C #7C321C #1C7C32
tetradic
#321C7C #7C1C36 #667C1C #1C7C62
square
#321C7C #7C1C36 #667C1C #1C7C62
split-complementary
#321C7C #7C621C #367C1C
monochromatic
#0A0619 #1E114A #321C7C #4627AE #613FD4
Accessibility & contrast
On white
13.18
#321C7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#321C7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321C7C
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321C7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321C7C | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 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: #321c7c; /* rgb */ color: rgb(50, 28, 124); /* oklch */ color: oklch(32.6% 0.151 284.9);
Tailwind
colors: {
custom: {
50: '#735ba3',
500: '#321c7c',
950: '#000000',
},
}SCSS
$custom: #321c7c; $custom-light: #735ba3; $custom-dark: #000000;
JSON
{
"hex": "#321c7c",
"rgb": {
"r": 50,
"g": 28,
"b": 124
},
"hsl": {
"h": 253.75,
"s": 63.158,
"l": 29.804
},
"oklch": {
"l": 0.32593,
"c": 0.15068,
"h": 284.9
},
"luminance": 0.02964
}Semantic roles & 50–950 ramp
primary
#321C7C
secondary
#97B044
accent
#E642C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F