#32127E#32127E
#32127E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 286.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #32127E |
|---|---|
| RGB | rgb(50, 18, 126) |
| HSL | hsl(258, 75%, 28%) |
| HSV | hsv(258, 86%, 49%) |
| CMYK | cmyk(60.3%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(18.44, 42.54, -54.24) |
| CIE-LCH | lch(18.44, 68.93, 308.11°) |
| OKLab | oklab(31.64% 0.0448 -0.1562) |
| OKLCH | oklch(31.64% 0.163 286) |
| XYZ | xyz(5.2965, 2.6168, 19.9606) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.26
Indigo
#4B0082
ΔE00 4.46
Midnight Blue
#191970
ΔE00 4.53
Royal
#0C1793
ΔE00 4.69
Navy
#000080
ΔE00 4.82
Darkblue
#00008B
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#32127E #5E7E12
analogous
#12287E #32127E #68127E
triadic
#32127E #7E3212 #127E32
tetradic
#32127E #7E1228 #5E7E12 #127E68
square
#32127E #7E1228 #5E7E12 #127E68
split-complementary
#32127E #7E6812 #287E12
monochromatic
#0B041B #1D0A48 #32127E #471AB4 #602AE1
Accessibility & contrast
On white
13.78
#32127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#32127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #32127E
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##32127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##32127E | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#08344A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #32127e; /* rgb */ color: rgb(50, 18, 126); /* oklch */ color: oklch(31.6% 0.163 286.0);
Tailwind
colors: {
custom: {
50: '#7556a5',
500: '#32127e',
950: '#000000',
},
}SCSS
$custom: #32127e; $custom-light: #7556a5; $custom-dark: #000000;
JSON
{
"hex": "#32127e",
"rgb": {
"r": 50,
"g": 18,
"b": 126
},
"hsl": {
"h": 257.778,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.31642,
"c": 0.16255,
"h": 286
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#32127E
secondary
#8FB438
accent
#F236BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F