#331D6F#331D6F
#331D6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.133 H 288.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #331D6F |
|---|---|
| RGB | rgb(51, 29, 111) |
| HSL | hsl(256, 59%, 27%) |
| HSV | hsv(256, 74%, 44%) |
| CMYK | cmyk(54.1%, 73.9%, 0%, 56.5%) |
| CIE-LAB | lab(18.93, 32.62, -43.79) |
| CIE-LCH | lch(18.93, 54.61, 306.68°) |
| OKLab | oklab(31.54% 0.0426 -0.1258) |
| OKLCH | oklch(31.54% 0.133 288.7) |
| XYZ | xyz(4.6730, 2.7300, 15.3166) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.86
Indigo (survey)
#380282
ΔE00 5.65
Dark Indigo
#1F0954
ΔE00 5.99
Indigo
#4B0082
ΔE00 6.61
Dark Royal Blue
#02066F
ΔE00 6.62
Darkblue (survey)
#030764
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331D6F #596F1D
analogous
#1D306F #331D6F #5C1D6F
triadic
#331D6F #6F331D #1D6F33
tetradic
#331D6F #6F1D30 #596F1D #1D6F5C
square
#331D6F #6F1D30 #596F1D #1D6F5C
split-complementary
#331D6F #6F5C1D #306F1D
monochromatic
#0B0618 #1D103E #331D6F #492AA0 #623BCC
Accessibility & contrast
On white
13.58
#331D6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#331D6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331D6F
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331D6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331D6F | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#1D3243
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #331d6f; /* rgb */ color: rgb(51, 29, 111); /* oklch */ color: oklch(31.5% 0.133 288.7);
Tailwind
colors: {
custom: {
50: '#725b99',
500: '#331d6f',
950: '#000000',
},
}SCSS
$custom: #331d6f; $custom-light: #725b99; $custom-dark: #000000;
JSON
{
"hex": "#331d6f",
"rgb": {
"r": 51,
"g": 29,
"b": 111
},
"hsl": {
"h": 256.098,
"s": 58.571,
"l": 27.451
},
"oklch": {
"l": 0.31542,
"c": 0.13277,
"h": 288.7
},
"luminance": 0.0273
}Semantic roles & 50–950 ramp
primary
#331D6F
secondary
#8AA344
accent
#E246B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E