#35217F#35217F
#35217F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.149 H 285.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #35217F |
|---|---|
| RGB | rgb(53, 33, 127) |
| HSL | hsl(253, 59%, 31%) |
| HSV | hsv(253, 74%, 50%) |
| CMYK | cmyk(58.3%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(21.49, 35.71, -49.83) |
| CIE-LCH | lch(21.49, 61.31, 305.63°) |
| OKLab | oklab(33.89% 0.0385 -0.1434) |
| OKLCH | oklch(33.89% 0.149 285) |
| XYZ | xyz(5.8417, 3.3766, 20.4185) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.36
Indigo (survey)
#380282
ΔE00 5.19
Royal
#0C1793
ΔE00 5.22
Indigo
#4B0082
ΔE00 6.29
Darkblue
#00008B
ΔE00 7.13
Dark Royal Blue
#02066F
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#35217F #6B7F21
analogous
#213C7F #35217F #64217F
triadic
#35217F #7F3521 #217F35
tetradic
#35217F #7F213C #6B7F21 #217F64
square
#35217F #7F213C #6B7F21 #217F64
split-complementary
#35217F #7F6421 #3C7F21
monochromatic
#0C081E #21144E #35217F #492EB0 #674AD0
Accessibility & contrast
On white
12.53
#35217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#35217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #35217F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##35217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##35217F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#113A4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #35217f; /* rgb */ color: rgb(53, 33, 127); /* oklch */ color: oklch(33.9% 0.149 285.0);
Tailwind
colors: {
custom: {
50: '#755ea5',
500: '#35217f',
950: '#000000',
},
}SCSS
$custom: #35217f; $custom-light: #755ea5; $custom-dark: #000000;
JSON
{
"hex": "#35217f",
"rgb": {
"r": 53,
"g": 33,
"b": 127
},
"hsl": {
"h": 252.766,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33886,
"c": 0.14851,
"h": 285
},
"luminance": 0.03377
}Semantic roles & 50–950 ramp
primary
#35217F
secondary
#9CB24A
accent
#E246C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F