#371A5C#371A5C
#371A5C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.112 H 299.7°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #371A5C |
|---|---|
| RGB | rgb(55, 26, 92) |
| HSL | hsl(266, 56%, 23%) |
| HSV | hsv(266, 72%, 36%) |
| CMYK | cmyk(40.2%, 71.7%, 0%, 63.9%) |
| CIE-LAB | lab(17.10, 29.42, -34.26) |
| CIE-LCH | lch(17.10, 45.16, 310.66°) |
| OKLab | oklab(29.82% 0.0557 -0.0976) |
| OKLCH | oklch(29.82% 0.112 299.7) |
| XYZ | xyz(3.8762, 2.3237, 10.3674) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.32
Royal Purple (survey)
#4B006E
ΔE00 6.48
Midnight Blue
#191970
ΔE00 7.09
Dark Purple
#35063E
ΔE00 7.34
Dark Violet
#34013F
ΔE00 7.37
Deep Purple
#36013F
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371A5C #3F5C1A
analogous
#1A1E5C #371A5C #581A5C
triadic
#371A5C #5C371A #1A5C37
tetradic
#371A5C #5C1A1E #3F5C1A #1A5C58
square
#371A5C #5C1A1E #3F5C1A #1A5C58
split-complementary
#371A5C #5C581A #1E5C1A
monochromatic
#0E0718 #1A0D2C #371A5C #54278C #7035BB
Accessibility & contrast
On white
14.34
#371A5C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#371A5C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371A5C
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371A5C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371A5C | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#2F2938
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #371a5c; /* rgb */ color: rgb(55, 26, 92); /* oklch */ color: oklch(29.8% 0.112 299.7);
Tailwind
colors: {
custom: {
50: '#71598b',
500: '#371a5c',
950: '#000000',
},
}SCSS
$custom: #371a5c; $custom-light: #71598b; $custom-dark: #000000;
JSON
{
"hex": "#371a5c",
"rgb": {
"r": 55,
"g": 26,
"b": 92
},
"hsl": {
"h": 266.364,
"s": 55.932,
"l": 23.137
},
"oklch": {
"l": 0.29823,
"c": 0.11234,
"h": 299.7
},
"luminance": 0.02324
}Semantic roles & 50–950 ramp
primary
#371A5C
secondary
#6E9240
accent
#DF499D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D