#3D188F#3D188F
#3D188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.176 H 287.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).
Color values
| HEX | #3D188F |
|---|---|
| RGB | rgb(61, 24, 143) |
| HSL | hsl(259, 71%, 33%) |
| HSV | hsv(259, 83%, 56%) |
| CMYK | cmyk(57.3%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.40, 46.11, -58.35) |
| CIE-LCH | lch(22.40, 74.37, 308.32°) |
| OKLab | oklab(35.22% 0.0532 -0.168) |
| OKLCH | oklch(35.22% 0.176 287.6) |
| XYZ | xyz(7.2076, 3.6281, 26.3018) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.54
Indigo
#4B0082
ΔE00 4.36
Royal
#0C1793
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 4.74
Cobalt Blue
#030AA7
ΔE00 5.42
Ultramarine
#2000B1
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D188F #6A8F18
analogous
#182F8F #3D188F #78188F
triadic
#3D188F #8F3D18 #188F3D
tetradic
#3D188F #8F182F #6A8F18 #188F78
square
#3D188F #8F182F #6A8F18 #188F78
split-complementary
#3D188F #8F7818 #2F8F18
monochromatic
#100626 #270F5B #3D188F #5321C3 #7342DF
Accessibility & contrast
On white
12.17
#3D188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3D188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D188F
12.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D188F | 1.00 | 12.17 | 1.73 | 12.17 |
| #FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#173C55
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d188f; /* rgb */ color: rgb(61, 24, 143); /* oklch */ color: oklch(35.2% 0.176 287.6);
Tailwind
colors: {
custom: {
50: '#7d5bb1',
500: '#3d188f',
950: '#000000',
},
}SCSS
$custom: #3d188f; $custom-light: #7d5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3d188f",
"rgb": {
"r": 61,
"g": 24,
"b": 143
},
"hsl": {
"h": 258.655,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.35216,
"c": 0.17619,
"h": 287.6
},
"luminance": 0.03629
}Semantic roles & 50–950 ramp
primary
#3D188F
secondary
#99C043
accent
#EE3AB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980