#331889#331889
#331889 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.170 H 283.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #331889 |
|---|---|
| RGB | rgb(51, 24, 137) |
| HSL | hsl(254, 70%, 32%) |
| HSV | hsv(254, 82%, 54%) |
| CMYK | cmyk(62.8%, 82.5%, 0%, 46.3%) |
| CIE-LAB | lab(20.68, 43.21, -57.47) |
| CIE-LCH | lch(20.68, 71.91, 306.94°) |
| OKLab | oklab(33.58% 0.0391 -0.1657) |
| OKLCH | oklch(33.58% 0.17 283.3) |
| XYZ | xyz(6.2058, 3.1628, 23.9455) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Royal
#0C1793
ΔE00 3.60
Darkblue
#00008B
ΔE00 5.06
Indigo
#4B0082
ΔE00 5.10
Midnight Blue
#191970
ΔE00 5.16
Cobalt Blue
#030AA7
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331889 #6E8918
analogous
#183689 #331889 #6C1889
triadic
#331889 #893318 #188933
tetradic
#331889 #891836 #6E8918 #18896C
square
#331889 #891836 #6E8918 #18896C
split-complementary
#331889 #896C18 #368918
monochromatic
#0C0621 #200F55 #331889 #4621BD #643EDD
Accessibility & contrast
On white
12.86
#331889 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#331889 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331889
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331889 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331889 | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #331889; /* rgb */ color: rgb(51, 24, 137); /* oklch */ color: oklch(33.6% 0.170 283.3);
Tailwind
colors: {
custom: {
50: '#775aad',
500: '#331889',
950: '#000000',
},
}SCSS
$custom: #331889; $custom-light: #775aad; $custom-dark: #000000;
JSON
{
"hex": "#331889",
"rgb": {
"r": 51,
"g": 24,
"b": 137
},
"hsl": {
"h": 254.336,
"s": 70.186,
"l": 31.569
},
"oklch": {
"l": 0.33582,
"c": 0.17027,
"h": 283.3
},
"luminance": 0.03163
}Semantic roles & 50–950 ramp
primary
#331889
secondary
#9FBD40
accent
#ED3BC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F