#321C86#321C86
#321C86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.163 H 282.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #321C86 |
|---|---|
| RGB | rgb(50, 28, 134) |
| HSL | hsl(252, 65%, 32%) |
| HSV | hsv(252, 79%, 53%) |
| CMYK | cmyk(62.7%, 79.1%, 0%, 47.5%) |
| CIE-LAB | lab(20.94, 40.22, -55.17) |
| CIE-LCH | lch(20.94, 68.27, 306.09°) |
| OKLab | oklab(33.64% 0.0359 -0.1591) |
| OKLCH | oklch(33.64% 0.163 282.7) |
| XYZ | xyz(6.0324, 3.2294, 22.8551) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.78
Indigo (survey)
#380282
ΔE00 4.06
Midnight Blue
#191970
ΔE00 4.60
Darkblue
#00008B
ΔE00 5.63
Indigo
#4B0082
ΔE00 5.69
Cobalt Blue
#030AA7
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321C86 #70861C
analogous
#1C3B86 #321C86 #671C86
triadic
#321C86 #86321C #1C8632
tetradic
#321C86 #861C3B #70861C #1C8667
square
#321C86 #861C3B #70861C #1C8667
split-complementary
#321C86 #86671C #3B861C
monochromatic
#0C0721 #1F1153 #321C86 #4527B9 #6344D8
Accessibility & contrast
On white
12.76
#321C86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#321C86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321C86
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321C86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321C86 | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #321c86; /* rgb */ color: rgb(50, 28, 134); /* oklch */ color: oklch(33.6% 0.163 282.7);
Tailwind
colors: {
custom: {
50: '#755caa',
500: '#321c86',
950: '#000000',
},
}SCSS
$custom: #321c86; $custom-light: #755caa; $custom-dark: #000000;
JSON
{
"hex": "#321c86",
"rgb": {
"r": 50,
"g": 28,
"b": 134
},
"hsl": {
"h": 252.453,
"s": 65.432,
"l": 31.765
},
"oklch": {
"l": 0.33639,
"c": 0.16309,
"h": 282.7
},
"luminance": 0.0323
}Semantic roles & 50–950 ramp
primary
#321C86
secondary
#A1B945
accent
#E83FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F