#351F7E#351F7E
#351F7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.150 H 285.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #351F7E |
|---|---|
| RGB | rgb(53, 31, 126) |
| HSL | hsl(254, 61%, 31%) |
| HSV | hsv(254, 75%, 49%) |
| CMYK | cmyk(57.9%, 75.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.99, 36.53, -50.02) |
| CIE-LCH | lch(20.99, 61.94, 306.14°) |
| OKLab | oklab(33.5% 0.0405 -0.144) |
| OKLCH | oklch(33.5% 0.15 285.7) |
| XYZ | xyz(5.7229, 3.2429, 20.0590) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.25
Indigo (survey)
#380282
ΔE00 4.74
Royal
#0C1793
ΔE00 5.17
Indigo
#4B0082
ΔE00 5.90
Darkblue
#00008B
ΔE00 6.83
Dark Royal Blue
#02066F
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#351F7E #687E1F
analogous
#1F387E #351F7E #641F7E
triadic
#351F7E #7E351F #1F7E35
tetradic
#351F7E #7E1F38 #687E1F #1F7E64
square
#351F7E #7E1F38 #687E1F #1F7E64
split-complementary
#351F7E #7E641F #387E1F
monochromatic
#0C071C #20134D #351F7E #4A2BAF #6646D1
Accessibility & contrast
On white
12.74
#351F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#351F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #351F7E
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##351F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##351F7E | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#13394C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #351f7e; /* rgb */ color: rgb(53, 31, 126); /* oklch */ color: oklch(33.5% 0.150 285.7);
Tailwind
colors: {
custom: {
50: '#755da4',
500: '#351f7e',
950: '#000000',
},
}SCSS
$custom: #351f7e; $custom-light: #755da4; $custom-dark: #000000;
JSON
{
"hex": "#351f7e",
"rgb": {
"r": 53,
"g": 31,
"b": 126
},
"hsl": {
"h": 253.895,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.335,
"c": 0.14954,
"h": 285.7
},
"luminance": 0.03243
}Semantic roles & 50–950 ramp
primary
#351F7E
secondary
#99B148
accent
#E444BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F