#331489#331489
#331489 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.174 H 283.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #331489 |
|---|---|
| RGB | rgb(51, 20, 137) |
| HSL | hsl(256, 75%, 31%) |
| HSV | hsv(256, 85%, 54%) |
| CMYK | cmyk(62.8%, 85.4%, 0%, 46.3%) |
| CIE-LAB | lab(20.08, 44.98, -58.47) |
| CIE-LCH | lch(20.08, 73.76, 307.57°) |
| OKLab | oklab(33.17% 0.0413 -0.1686) |
| OKLCH | oklch(33.17% 0.174 283.8) |
| XYZ | xyz(6.1294, 3.0098, 23.9200) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.68
Royal
#0C1793
ΔE00 3.68
Darkblue
#00008B
ΔE00 4.61
Indigo
#4B0082
ΔE00 4.69
Cobalt Blue
#030AA7
ΔE00 4.98
Navy
#000080
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331489 #6A8914
analogous
#143089 #331489 #6D1489
triadic
#331489 #893314 #148933
tetradic
#331489 #891430 #6A8914 #14896D
square
#331489 #891430 #6A8914 #14896D
split-complementary
#331489 #896D14 #308914
monochromatic
#0B041E #1F0C54 #331489 #471CBE #6336E2
Accessibility & contrast
On white
13.11
#331489 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#331489 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331489
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331489 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331489 | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #331489; /* rgb */ color: rgb(51, 20, 137); /* oklch */ color: oklch(33.2% 0.174 283.8);
Tailwind
colors: {
custom: {
50: '#7758ad',
500: '#331489',
950: '#000000',
},
}SCSS
$custom: #331489; $custom-light: #7758ad; $custom-dark: #000000;
JSON
{
"hex": "#331489",
"rgb": {
"r": 51,
"g": 20,
"b": 137
},
"hsl": {
"h": 255.897,
"s": 74.522,
"l": 30.784
},
"oklch": {
"l": 0.33167,
"c": 0.17354,
"h": 283.8
},
"luminance": 0.0301
}Semantic roles & 50–950 ramp
primary
#331489
secondary
#9BBD3C
accent
#F137C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F