#3A188F#3A188F
#3A188F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.176 H 285.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #3A188F |
|---|---|
| RGB | rgb(58, 24, 143) |
| HSL | hsl(257, 71%, 33%) |
| HSV | hsv(257, 83%, 56%) |
| CMYK | cmyk(59.4%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.07, 45.76, -58.90) |
| CIE-LCH | lch(22.07, 74.59, 307.84°) |
| OKLab | oklab(34.91% 0.0483 -0.1697) |
| OKLCH | oklch(34.91% 0.176 285.9) |
| XYZ | xyz(7.0280, 3.5356, 26.2934) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.52
Royal
#0C1793
ΔE00 4.24
Indigo
#4B0082
ΔE00 4.65
Indigo Blue
#3A18B1
ΔE00 4.72
Cobalt Blue
#030AA7
ΔE00 5.10
Royal Blue (survey)
#0504AA
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A188F #6D8F18
analogous
#18318F #3A188F #75188F
triadic
#3A188F #8F3A18 #188F3A
tetradic
#3A188F #8F1831 #6D8F18 #188F75
square
#3A188F #8F1831 #6D8F18 #188F75
split-complementary
#3A188F #8F7518 #318F18
monochromatic
#0F0626 #250F5B #3A188F #4F21C3 #6F42DF
Accessibility & contrast
On white
12.30
#3A188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3A188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A188F
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A188F | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#0B3C55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3a188f; /* rgb */ color: rgb(58, 24, 143); /* oklch */ color: oklch(34.9% 0.176 285.9);
Tailwind
colors: {
custom: {
50: '#7c5bb1',
500: '#3a188f',
950: '#000000',
},
}SCSS
$custom: #3a188f; $custom-light: #7c5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3a188f",
"rgb": {
"r": 58,
"g": 24,
"b": 143
},
"hsl": {
"h": 257.143,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.34911,
"c": 0.17642,
"h": 285.9
},
"luminance": 0.03536
}Semantic roles & 50–950 ramp
primary
#3A188F
secondary
#9CC043
accent
#EE3ABB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980