#321C88#321C88
#321C88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 282.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #321C88 |
|---|---|
| RGB | rgb(50, 28, 136) |
| HSL | hsl(252, 66%, 32%) |
| HSV | hsv(252, 79%, 53%) |
| CMYK | cmyk(63.2%, 79.4%, 0%, 46.7%) |
| CIE-LAB | lab(21.15, 40.84, -56.07) |
| CIE-LCH | lch(21.15, 69.37, 306.06°) |
| OKLab | oklab(33.85% 0.0353 -0.1617) |
| OKLCH | oklch(33.85% 0.166 282.3) |
| XYZ | xyz(6.1732, 3.2858, 23.5967) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 4.10
Midnight Blue
#191970
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.53
Darkblue
#00008B
ΔE00 5.57
Indigo
#4B0082
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321C88 #72881C
analogous
#1C3C88 #321C88 #681C88
triadic
#321C88 #88321C #1C8832
tetradic
#321C88 #881C3C #72881C #1C8868
square
#321C88 #881C3C #72881C #1C8868
split-complementary
#321C88 #88681C #3C881C
monochromatic
#0D0722 #1F1255 #321C88 #4526BB #6446D9
Accessibility & contrast
On white
12.67
#321C88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#321C88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321C88
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321C88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321C88 | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #321c88; /* rgb */ color: rgb(50, 28, 136); /* oklch */ color: oklch(33.9% 0.166 282.3);
Tailwind
colors: {
custom: {
50: '#765cac',
500: '#321c88',
950: '#000000',
},
}SCSS
$custom: #321c88; $custom-light: #765cac; $custom-dark: #000000;
JSON
{
"hex": "#321c88",
"rgb": {
"r": 50,
"g": 28,
"b": 136
},
"hsl": {
"h": 252.222,
"s": 65.854,
"l": 32.157
},
"oklch": {
"l": 0.33852,
"c": 0.16554,
"h": 282.3
},
"luminance": 0.03286
}Semantic roles & 50–950 ramp
primary
#321C88
secondary
#A3BA45
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F