#331C9F#331C9F
#331C9F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.193 H 278.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).
Color values
| HEX | #331C9F |
|---|---|
| RGB | rgb(51, 28, 159) |
| HSL | hsl(251, 70%, 37%) |
| HSV | hsv(251, 82%, 62%) |
| CMYK | cmyk(67.9%, 82.4%, 0%, 37.6%) |
| CIE-LAB | lab(23.79, 47.94, -65.94) |
| CIE-LCH | lch(23.79, 81.52, 306.02°) |
| OKLab | oklab(36.46% 0.0298 -0.1904) |
| OKLCH | oklch(36.46% 0.193 278.9) |
| XYZ | xyz(8.0365, 4.0368, 33.1498) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.61
Royal
#0C1793
ΔE00 3.73
Cobalt Blue
#030AA7
ΔE00 3.77
Ultramarine
#2000B1
ΔE00 3.88
Royal Blue (survey)
#0504AA
ΔE00 4.09
True Blue
#010FCC
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C9F #889F1C
analogous
#1C479F #331C9F #751C9F
triadic
#331C9F #9F331C #1C9F33
tetradic
#331C9F #9F1C47 #889F1C #1C9F75
square
#331C9F #9F1C47 #889F1C #1C9F75
split-complementary
#331C9F #9F751C #479F1C
monochromatic
#120A37 #22136B #331C9F #4425D3 #6D54E1
Accessibility & contrast
On white
11.62
#331C9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#331C9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C9F
11.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C9F | 1.00 | 11.62 | 1.81 | 11.62 |
| #FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #331c9f; /* rgb */ color: rgb(51, 28, 159); /* oklch */ color: oklch(36.5% 0.193 278.9);
Tailwind
colors: {
custom: {
50: '#7b5dbd',
500: '#331c9f',
950: '#000000',
},
}SCSS
$custom: #331c9f; $custom-light: #7b5dbd; $custom-dark: #000000;
JSON
{
"hex": "#331c9f",
"rgb": {
"r": 51,
"g": 28,
"b": 159
},
"hsl": {
"h": 250.534,
"s": 70.053,
"l": 36.667
},
"oklch": {
"l": 0.36461,
"c": 0.19274,
"h": 278.9
},
"luminance": 0.04038
}Semantic roles & 50–950 ramp
primary
#331C9F
secondary
#B0C453
accent
#ED3BCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981