#321B6E#321B6E
#321B6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 288.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #321B6E |
|---|---|
| RGB | rgb(50, 27, 110) |
| HSL | hsl(257, 61%, 27%) |
| HSV | hsv(257, 75%, 43%) |
| CMYK | cmyk(54.5%, 75.5%, 0%, 56.9%) |
| CIE-LAB | lab(18.31, 33.27, -44.16) |
| CIE-LCH | lch(18.31, 55.29, 307.00°) |
| OKLab | oklab(31.05% 0.0431 -0.1269) |
| OKLCH | oklch(31.05% 0.134 288.8) |
| XYZ | xyz(4.5210, 2.5876, 15.0101) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.74
Indigo (survey)
#380282
ΔE00 5.39
Dark Indigo
#1F0954
ΔE00 5.59
Dark Royal Blue
#02066F
ΔE00 6.24
Darkblue (survey)
#030764
ΔE00 6.29
Indigo
#4B0082
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#321B6E #576E1B
analogous
#1B2D6E #321B6E #5C1B6E
triadic
#321B6E #6E321B #1B6E32
tetradic
#321B6E #6E1B2D #576E1B #1B6E5C
square
#321B6E #6E1B2D #576E1B #1B6E5C
split-complementary
#321B6E #6E5C1B #2D6E1B
monochromatic
#0B0619 #1C0F3D #321B6E #48279F #6036CE
Accessibility & contrast
On white
13.84
#321B6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#321B6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #321B6E
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##321B6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##321B6E | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#1C3142
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #321b6e; /* rgb */ color: rgb(50, 27, 110); /* oklch */ color: oklch(31.0% 0.134 288.8);
Tailwind
colors: {
custom: {
50: '#715a98',
500: '#321b6e',
950: '#000000',
},
}SCSS
$custom: #321b6e; $custom-light: #715a98; $custom-dark: #000000;
JSON
{
"hex": "#321b6e",
"rgb": {
"r": 50,
"g": 27,
"b": 110
},
"hsl": {
"h": 256.627,
"s": 60.584,
"l": 26.863
},
"oklch": {
"l": 0.31047,
"c": 0.13399,
"h": 288.8
},
"luminance": 0.02588
}Semantic roles & 50–950 ramp
primary
#321B6E
secondary
#88A342
accent
#E444B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E