#321A7C#321A7C
#321A7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 285.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #321A7C |
|---|---|
| RGB | rgb(50, 26, 124) |
| HSL | hsl(255, 65%, 29%) |
| HSV | hsv(255, 79%, 49%) |
| CMYK | cmyk(59.7%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(19.52, 38.17, -51.18) |
| CIE-LCH | lch(19.52, 63.84, 306.72°) |
| OKLab | oklab(32.33% 0.0402 -0.1474) |
| OKLCH | oklch(32.33% 0.153 285.3) |
| XYZ | xyz(5.3218, 2.8718, 19.3388) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.80
Indigo (survey)
#380282
ΔE00 3.83
Royal
#0C1793
ΔE00 4.85
Indigo
#4B0082
ΔE00 5.43
Dark Royal Blue
#02066F
ΔE00 5.82
Navy
#000080
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321A7C #647C1A
analogous
#1A337C #321A7C #631A7C
triadic
#321A7C #7C321A #1A7C32
tetradic
#321A7C #7C1A33 #647C1A #1A7C63
square
#321A7C #7C1A33 #647C1A #1A7C63
split-complementary
#321A7C #7C631A #337C1A
monochromatic
#0A0519 #1E0F49 #321A7C #4625AF #613BD6
Accessibility & contrast
On white
13.34
#321A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#321A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321A7C
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321A7C | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#0B364A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #321a7c; /* rgb */ color: rgb(50, 26, 124); /* oklch */ color: oklch(32.3% 0.153 285.3);
Tailwind
colors: {
custom: {
50: '#745aa3',
500: '#321a7c',
950: '#000000',
},
}SCSS
$custom: #321a7c; $custom-light: #745aa3; $custom-dark: #000000;
JSON
{
"hex": "#321a7c",
"rgb": {
"r": 50,
"g": 26,
"b": 124
},
"hsl": {
"h": 254.694,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.3233,
"c": 0.15279,
"h": 285.3
},
"luminance": 0.02872
}Semantic roles & 50–950 ramp
primary
#321A7C
secondary
#95B042
accent
#E840BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F