#321C7E#321C7E
#321C7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.153 H 284.4°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #321C7E |
|---|---|
| RGB | rgb(50, 28, 126) |
| HSL | hsl(253, 64%, 30%) |
| HSV | hsv(253, 78%, 49%) |
| CMYK | cmyk(60.3%, 77.8%, 0%, 50.6%) |
| CIE-LAB | lab(20.10, 37.73, -51.49) |
| CIE-LCH | lch(20.10, 63.84, 306.23°) |
| OKLab | oklab(32.8% 0.0382 -0.1483) |
| OKLCH | oklch(32.8% 0.153 284.4) |
| XYZ | xyz(5.4954, 3.0146, 20.0269) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.86
Indigo (survey)
#380282
ΔE00 4.18
Royal
#0C1793
ΔE00 4.66
Indigo
#4B0082
ΔE00 5.71
Darkblue
#00008B
ΔE00 6.08
Navy
#000080
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321C7E #687E1C
analogous
#1C377E #321C7E #631C7E
triadic
#321C7E #7E321C #1C7E32
tetradic
#321C7E #7E1C37 #687E1C #1C7E63
square
#321C7E #7E1C37 #687E1C #1C7E63
split-complementary
#321C7E #7E631C #377E1C
monochromatic
#0A061A #1E114C #321C7E #4627B0 #6140D5
Accessibility & contrast
On white
13.10
#321C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#321C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321C7E
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321C7E | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#06384C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #321c7e; /* rgb */ color: rgb(50, 28, 126); /* oklch */ color: oklch(32.8% 0.153 284.4);
Tailwind
colors: {
custom: {
50: '#745ba4',
500: '#321c7e',
950: '#000000',
},
}SCSS
$custom: #321c7e; $custom-light: #745ba4; $custom-dark: #000000;
JSON
{
"hex": "#321c7e",
"rgb": {
"r": 50,
"g": 28,
"b": 126
},
"hsl": {
"h": 253.469,
"s": 63.636,
"l": 30.196
},
"oklch": {
"l": 0.32799,
"c": 0.15318,
"h": 284.4
},
"luminance": 0.03015
}Semantic roles & 50–950 ramp
primary
#321C7E
secondary
#99B244
accent
#E741C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F