#3B188F#3B188F
#3B188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 286.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #3B188F |
|---|---|
| RGB | rgb(59, 24, 143) |
| HSL | hsl(258, 71%, 33%) |
| HSV | hsv(258, 83%, 56%) |
| CMYK | cmyk(58.7%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.18, 45.87, -58.72) |
| CIE-LCH | lch(22.18, 74.51, 308.00°) |
| OKLab | oklab(35.01% 0.0499 -0.1691) |
| OKLCH | oklch(35.01% 0.176 286.4) |
| XYZ | xyz(7.0867, 3.5658, 26.2961) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.52
Royal
#0C1793
ΔE00 4.38
Indigo
#4B0082
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.72
Cobalt Blue
#030AA7
ΔE00 5.21
Ultramarine
#2000B1
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B188F #6C8F18
analogous
#18318F #3B188F #76188F
triadic
#3B188F #8F3B18 #188F3B
tetradic
#3B188F #8F1831 #6C8F18 #188F76
square
#3B188F #8F1831 #6C8F18 #188F76
split-complementary
#3B188F #8F7618 #318F18
monochromatic
#100626 #250F5B #3B188F #5121C3 #7042DF
Accessibility & contrast
On white
12.26
#3B188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3B188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B188F
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B188F | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#103C55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3b188f; /* rgb */ color: rgb(59, 24, 143); /* oklch */ color: oklch(35.0% 0.176 286.4);
Tailwind
colors: {
custom: {
50: '#7c5bb1',
500: '#3b188f',
950: '#000000',
},
}SCSS
$custom: #3b188f; $custom-light: #7c5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3b188f",
"rgb": {
"r": 59,
"g": 24,
"b": 143
},
"hsl": {
"h": 257.647,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.35012,
"c": 0.17633,
"h": 286.4
},
"luminance": 0.03566
}Semantic roles & 50–950 ramp
primary
#3B188F
secondary
#9BC043
accent
#EE3AB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980