#3B188E#3B188E
#3B188E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.175 H 286.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #3B188E |
|---|---|
| RGB | rgb(59, 24, 142) |
| HSL | hsl(258, 71%, 33%) |
| HSV | hsv(258, 83%, 56%) |
| CMYK | cmyk(58.5%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(22.07, 45.59, -58.28) |
| CIE-LCH | lch(22.07, 73.99, 308.04°) |
| OKLab | oklab(34.91% 0.0503 -0.1678) |
| OKLCH | oklch(34.91% 0.175 286.7) |
| XYZ | xyz(7.0113, 3.5357, 25.8989) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.44
Royal
#0C1793
ΔE00 4.42
Indigo
#4B0082
ΔE00 4.48
Indigo Blue
#3A18B1
ΔE00 4.87
Cobalt Blue
#030AA7
ΔE00 5.31
Ultramarine
#2000B1
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B188E #6B8E18
analogous
#18308E #3B188E #76188E
triadic
#3B188E #8E3B18 #188E3B
tetradic
#3B188E #8E1830 #6B8E18 #188E76
square
#3B188E #8E1830 #6B8E18 #188E76
split-complementary
#3B188E #8E7618 #308E18
monochromatic
#0F0625 #250F5A #3B188E #5121C2 #7041DF
Accessibility & contrast
On white
12.30
#3B188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#3B188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B188E
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B188E | 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)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#123C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3b188e; /* rgb */ color: rgb(59, 24, 142); /* oklch */ color: oklch(34.9% 0.175 286.7);
Tailwind
colors: {
custom: {
50: '#7c5bb0',
500: '#3b188e',
950: '#000000',
},
}SCSS
$custom: #3b188e; $custom-light: #7c5bb0; $custom-dark: #000000;
JSON
{
"hex": "#3b188e",
"rgb": {
"r": 59,
"g": 24,
"b": 142
},
"hsl": {
"h": 257.797,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.34905,
"c": 0.17519,
"h": 286.7
},
"luminance": 0.03536
}Semantic roles & 50–950 ramp
primary
#3B188E
secondary
#9AC042
accent
#EE3AB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980