#351A8C#351A8C
#351A8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.172 H 283.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).
Color values
| HEX | #351A8C |
|---|---|
| RGB | rgb(53, 26, 140) |
| HSL | hsl(254, 69%, 33%) |
| HSV | hsv(254, 81%, 55%) |
| CMYK | cmyk(62.1%, 81.4%, 0%, 45.1%) |
| CIE-LAB | lab(21.54, 43.40, -57.93) |
| CIE-LCH | lch(21.54, 72.39, 306.84°) |
| OKLab | oklab(34.32% 0.0401 -0.167) |
| OKLCH | oklch(34.32% 0.172 283.5) |
| XYZ | xyz(6.5698, 3.3887, 25.1137) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.68
Indigo (survey)
#380282
ΔE00 3.74
Cobalt Blue
#030AA7
ΔE00 5.10
Indigo Blue
#3A18B1
ΔE00 5.18
Indigo
#4B0082
ΔE00 5.24
Darkblue
#00008B
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#351A8C #718C1A
analogous
#1A388C #351A8C #6E1A8C
triadic
#351A8C #8C351A #1A8C35
tetradic
#351A8C #8C1A38 #718C1A #1A8C6E
square
#351A8C #8C1A38 #718C1A #1A8C6E
split-complementary
#351A8C #8C6E1A #388C1A
monochromatic
#0E0725 #211058 #351A8C #4924C0 #6844DC
Accessibility & contrast
On white
12.52
#351A8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#351A8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #351A8C
12.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##351A8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##351A8C | 1.00 | 12.52 | 1.68 | 12.52 |
| #FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #351a8c; /* rgb */ color: rgb(53, 26, 140); /* oklch */ color: oklch(34.3% 0.172 283.5);
Tailwind
colors: {
custom: {
50: '#785baf',
500: '#351a8c',
950: '#000000',
},
}SCSS
$custom: #351a8c; $custom-light: #785baf; $custom-dark: #000000;
JSON
{
"hex": "#351a8c",
"rgb": {
"r": 53,
"g": 26,
"b": 140
},
"hsl": {
"h": 254.211,
"s": 68.675,
"l": 32.549
},
"oklch": {
"l": 0.3432,
"c": 0.17178,
"h": 283.5
},
"luminance": 0.03389
}Semantic roles & 50–950 ramp
primary
#351A8C
secondary
#A1BE44
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F