#371A5E#371A5E
#371A5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.115 H 298.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #371A5E |
|---|---|
| RGB | rgb(55, 26, 94) |
| HSL | hsl(266, 57%, 24%) |
| HSV | hsv(266, 72%, 37%) |
| CMYK | cmyk(41.5%, 72.3%, 0%, 63.1%) |
| CIE-LAB | lab(17.27, 30.01, -35.32) |
| CIE-LCH | lch(17.27, 46.34, 310.35°) |
| OKLab | oklab(30% 0.0554 -0.1007) |
| OKLCH | oklch(30% 0.115 298.8) |
| XYZ | xyz(3.9648, 2.3591, 10.8340) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 5.22
Royal Purple (survey)
#4B006E
ΔE00 6.27
Midnight Blue
#191970
ΔE00 6.72
Dark Violet
#34013F
ΔE00 7.68
Dark Purple
#35063E
ΔE00 7.69
Indigo (survey)
#380282
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371A5E #415E1A
analogous
#1A1F5E #371A5E #591A5E
triadic
#371A5E #5E371A #1A5E37
tetradic
#371A5E #5E1A1F #415E1A #1A5E59
square
#371A5E #5E1A1F #415E1A #1A5E59
split-complementary
#371A5E #5E591A #1F5E1A
monochromatic
#0E0718 #1B0D2E #371A5E #53278E #6F35BE
Accessibility & contrast
On white
14.27
#371A5E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#371A5E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371A5E
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371A5E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371A5E | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#2E2A39
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #371a5e; /* rgb */ color: rgb(55, 26, 94); /* oklch */ color: oklch(30.0% 0.115 298.8);
Tailwind
colors: {
custom: {
50: '#72598c',
500: '#371a5e',
950: '#000000',
},
}SCSS
$custom: #371a5e; $custom-light: #72598c; $custom-dark: #000000;
JSON
{
"hex": "#371a5e",
"rgb": {
"r": 55,
"g": 26,
"b": 94
},
"hsl": {
"h": 265.588,
"s": 56.667,
"l": 23.529
},
"oklch": {
"l": 0.29996,
"c": 0.11492,
"h": 298.8
},
"luminance": 0.02359
}Semantic roles & 50–950 ramp
primary
#371A5E
secondary
#709440
accent
#E0489F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D