#351F7D#351F7D
#351F7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.148 H 285.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #351F7D |
|---|---|
| RGB | rgb(53, 31, 125) |
| HSL | hsl(254, 60%, 31%) |
| HSV | hsv(254, 75%, 49%) |
| CMYK | cmyk(57.6%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.89, 36.21, -49.55) |
| CIE-LCH | lch(20.89, 61.37, 306.16°) |
| OKLab | oklab(33.4% 0.0407 -0.1426) |
| OKLCH | oklch(33.4% 0.148 285.9) |
| XYZ | xyz(5.6587, 3.2172, 19.7209) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.19
Indigo (survey)
#380282
ΔE00 4.79
Royal
#0C1793
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.93
Dark Royal Blue
#02066F
ΔE00 6.83
Darkblue
#00008B
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#351F7D #677D1F
analogous
#1F387D #351F7D #641F7D
triadic
#351F7D #7D351F #1F7D35
tetradic
#351F7D #7D1F38 #677D1F #1F7D64
square
#351F7D #7D1F38 #677D1F #1F7D64
split-complementary
#351F7D #7D641F #387D1F
monochromatic
#0B071B #20134C #351F7D #4A2BAE #6645D1
Accessibility & contrast
On white
12.78
#351F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#351F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #351F7D
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##351F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##351F7D | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#14394C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #351f7d; /* rgb */ color: rgb(53, 31, 125); /* oklch */ color: oklch(33.4% 0.148 285.9);
Tailwind
colors: {
custom: {
50: '#755da4',
500: '#351f7d',
950: '#000000',
},
}SCSS
$custom: #351f7d; $custom-light: #755da4; $custom-dark: #000000;
JSON
{
"hex": "#351f7d",
"rgb": {
"r": 53,
"g": 31,
"b": 125
},
"hsl": {
"h": 254.043,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.33401,
"c": 0.14827,
"h": 285.9
},
"luminance": 0.03218
}Semantic roles & 50–950 ramp
primary
#351F7D
secondary
#98B048
accent
#E344BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F