#331C75#331C75
#331C75 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.142 H 287.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #331C75 |
|---|---|
| RGB | rgb(51, 28, 117) |
| HSL | hsl(256, 61%, 28%) |
| HSV | hsv(256, 76%, 46%) |
| CMYK | cmyk(56.4%, 76.1%, 0%, 54.1%) |
| CIE-LAB | lab(19.30, 35.07, -47.06) |
| CIE-LCH | lch(19.30, 58.68, 306.69°) |
| OKLab | oklab(31.98% 0.0421 -0.1353) |
| OKLCH | oklch(31.98% 0.142 287.3) |
| XYZ | xyz(4.9904, 2.8184, 17.1072) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 4.76
Indigo
#4B0082
ΔE00 5.96
Royal
#0C1793
ΔE00 6.04
Dark Royal Blue
#02066F
ΔE00 6.20
Deep Blue
#040273
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331C75 #5E751C
analogous
#1C3175 #331C75 #5F1C75
triadic
#331C75 #75331C #1C7533
tetradic
#331C75 #751C31 #5E751C #1C755F
square
#331C75 #751C31 #5E751C #1C755F
split-complementary
#331C75 #755F1C #31751C
monochromatic
#0B0619 #1D1044 #331C75 #4928A6 #623BD0
Accessibility & contrast
On white
13.43
#331C75 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#331C75 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331C75
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331C75 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331C75 | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#183447
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #331c75; /* rgb */ color: rgb(51, 28, 117); /* oklch */ color: oklch(32.0% 0.142 287.3);
Tailwind
colors: {
custom: {
50: '#735b9e',
500: '#331c75',
950: '#000000',
},
}SCSS
$custom: #331c75; $custom-light: #735b9e; $custom-dark: #000000;
JSON
{
"hex": "#331c75",
"rgb": {
"r": 51,
"g": 28,
"b": 117
},
"hsl": {
"h": 255.506,
"s": 61.379,
"l": 28.431
},
"oklch": {
"l": 0.31984,
"c": 0.14173,
"h": 287.3
},
"luminance": 0.02819
}Semantic roles & 50–950 ramp
primary
#331C75
secondary
#8FA944
accent
#E443BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E