#331C88#331C88
#331C88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.165 H 282.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #331C88 |
|---|---|
| RGB | rgb(51, 28, 136) |
| HSL | hsl(253, 66%, 32%) |
| HSV | hsv(253, 79%, 53%) |
| CMYK | cmyk(62.5%, 79.4%, 0%, 46.7%) |
| CIE-LAB | lab(21.25, 40.96, -55.91) |
| CIE-LCH | lch(21.25, 69.31, 306.23°) |
| OKLab | oklab(33.94% 0.0369 -0.1612) |
| OKLCH | oklch(33.94% 0.165 282.9) |
| XYZ | xyz(6.2230, 3.3115, 23.5990) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.74
Indigo (survey)
#380282
ΔE00 4.05
Midnight Blue
#191970
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.60
Indigo
#4B0082
ΔE00 5.61
Darkblue
#00008B
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C88 #71881C
analogous
#1C3B88 #331C88 #691C88
triadic
#331C88 #88331C #1C8833
tetradic
#331C88 #881C3B #71881C #1C8869
square
#331C88 #881C3B #71881C #1C8869
split-complementary
#331C88 #88691C #3B881C
monochromatic
#0D0722 #201255 #331C88 #4626BB #6546D9
Accessibility & contrast
On white
12.63
#331C88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#331C88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C88
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C88 | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #331c88; /* rgb */ color: rgb(51, 28, 136); /* oklch */ color: oklch(33.9% 0.165 282.9);
Tailwind
colors: {
custom: {
50: '#765cac',
500: '#331c88',
950: '#000000',
},
}SCSS
$custom: #331c88; $custom-light: #765cac; $custom-dark: #000000;
JSON
{
"hex": "#331c88",
"rgb": {
"r": 51,
"g": 28,
"b": 136
},
"hsl": {
"h": 252.778,
"s": 65.854,
"l": 32.157
},
"oklch": {
"l": 0.33943,
"c": 0.16539,
"h": 282.9
},
"luminance": 0.03312
}Semantic roles & 50–950 ramp
primary
#331C88
secondary
#A2BA45
accent
#E93FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F