#321B7A#321B7A
#321B7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.149 H 285.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #321B7A |
|---|---|
| RGB | rgb(50, 27, 122) |
| HSL | hsl(255, 64%, 29%) |
| HSV | hsv(255, 78%, 48%) |
| CMYK | cmyk(59%, 77.9%, 0%, 52.2%) |
| CIE-LAB | lab(19.50, 37.02, -49.93) |
| CIE-LCH | lch(19.50, 62.16, 306.55°) |
| OKLab | oklab(32.25% 0.04 -0.1438) |
| OKLCH | oklch(32.25% 0.149 285.6) |
| XYZ | xyz(5.2191, 2.8668, 18.6869) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.65
Indigo (survey)
#380282
ΔE00 4.17
Royal
#0C1793
ΔE00 5.15
Indigo
#4B0082
ΔE00 5.66
Dark Royal Blue
#02066F
ΔE00 5.92
Deep Blue
#040273
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321B7A #637A1B
analogous
#1B347A #321B7A #621B7A
triadic
#321B7A #7A321B #1B7A32
tetradic
#321B7A #7A1B34 #637A1B #1B7A62
square
#321B7A #7A1B34 #637A1B #1B7A62
split-complementary
#321B7A #7A621B #347A1B
monochromatic
#0A0619 #1D1048 #321B7A #4726AC #603CD4
Accessibility & contrast
On white
13.35
#321B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#321B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321B7A
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321B7A | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#0E3649
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #321b7a; /* rgb */ color: rgb(50, 27, 122); /* oklch */ color: oklch(32.3% 0.149 285.6);
Tailwind
colors: {
custom: {
50: '#735aa1',
500: '#321b7a',
950: '#000000',
},
}SCSS
$custom: #321b7a; $custom-light: #735aa1; $custom-dark: #000000;
JSON
{
"hex": "#321b7a",
"rgb": {
"r": 50,
"g": 27,
"b": 122
},
"hsl": {
"h": 254.526,
"s": 63.758,
"l": 29.216
},
"oklch": {
"l": 0.32253,
"c": 0.14925,
"h": 285.6
},
"luminance": 0.02867
}Semantic roles & 50–950 ramp
primary
#321B7A
secondary
#94AE43
accent
#E741BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F