#35227E#35227E
#35227E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.146 H 285.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #35227E |
|---|---|
| RGB | rgb(53, 34, 126) |
| HSL | hsl(252, 58%, 31%) |
| HSV | hsv(252, 73%, 49%) |
| CMYK | cmyk(57.9%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(21.61, 34.81, -49.02) |
| CIE-LCH | lch(21.61, 60.12, 305.38°) |
| OKLab | oklab(33.94% 0.0378 -0.141) |
| OKLCH | oklch(33.94% 0.146 285) |
| XYZ | xyz(5.8050, 3.4070, 20.0863) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.36
Royal
#0C1793
ΔE00 5.44
Indigo (survey)
#380282
ΔE00 5.49
Indigo
#4B0082
ΔE00 6.53
Dark Royal Blue
#02066F
ΔE00 7.34
Darkblue
#00008B
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#35227E #6B7E22
analogous
#223D7E #35227E #63227E
triadic
#35227E #7E3522 #227E35
tetradic
#35227E #7E223D #6B7E22 #227E63
square
#35227E #7E223D #6B7E22 #227E63
split-complementary
#35227E #7E6322 #3D7E22
monochromatic
#0C081E #21154E #35227E #492FAE #674CCF
Accessibility & contrast
On white
12.49
#35227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#35227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #35227E
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##35227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##35227E | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#123A4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #35227e; /* rgb */ color: rgb(53, 34, 126); /* oklch */ color: oklch(33.9% 0.146 285.0);
Tailwind
colors: {
custom: {
50: '#755fa4',
500: '#35227e',
950: '#000000',
},
}SCSS
$custom: #35227e; $custom-light: #755fa4; $custom-dark: #000000;
JSON
{
"hex": "#35227e",
"rgb": {
"r": 53,
"g": 34,
"b": 126
},
"hsl": {
"h": 252.391,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.33936,
"c": 0.14602,
"h": 285
},
"luminance": 0.03407
}Semantic roles & 50–950 ramp
primary
#35227E
secondary
#9CB14B
accent
#E147C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F