#321B86#321B86
#321B86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 282.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #321B86 |
|---|---|
| RGB | rgb(50, 27, 134) |
| HSL | hsl(253, 66%, 32%) |
| HSV | hsv(253, 80%, 53%) |
| CMYK | cmyk(62.7%, 79.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.76, 40.73, -55.46) |
| CIE-LCH | lch(20.76, 68.81, 306.29°) |
| OKLab | oklab(33.51% 0.0366 -0.1599) |
| OKLCH | oklch(33.51% 0.164 282.9) |
| XYZ | xyz(6.0091, 3.1828, 22.8473) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 3.85
Midnight Blue
#191970
ΔE00 4.63
Darkblue
#00008B
ΔE00 5.48
Indigo
#4B0082
ΔE00 5.53
Cobalt Blue
#030AA7
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321B86 #6F861B
analogous
#1B3A86 #321B86 #681B86
triadic
#321B86 #86321B #1B8632
tetradic
#321B86 #861B3A #6F861B #1B8668
square
#321B86 #861B3A #6F861B #1B8668
split-complementary
#321B86 #86681B #3A861B
monochromatic
#0C0620 #1F1153 #321B86 #4525B9 #6342D9
Accessibility & contrast
On white
12.83
#321B86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#321B86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321B86
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321B86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321B86 | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #321b86; /* rgb */ color: rgb(50, 27, 134); /* oklch */ color: oklch(33.5% 0.164 282.9);
Tailwind
colors: {
custom: {
50: '#765baa',
500: '#321b86',
950: '#000000',
},
}SCSS
$custom: #321b86; $custom-light: #765baa; $custom-dark: #000000;
JSON
{
"hex": "#321b86",
"rgb": {
"r": 50,
"g": 27,
"b": 134
},
"hsl": {
"h": 252.897,
"s": 66.46,
"l": 31.569
},
"oklch": {
"l": 0.33514,
"c": 0.16407,
"h": 282.9
},
"luminance": 0.03183
}Semantic roles & 50–950 ramp
primary
#321B86
secondary
#A0B944
accent
#E93EC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F