#3B156F#3B156F
#3B156F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.142 H 296.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #3B156F |
|---|---|
| RGB | rgb(59, 21, 111) |
| HSL | hsl(265, 68%, 26%) |
| HSV | hsv(265, 81%, 44%) |
| CMYK | cmyk(46.8%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(18.43, 38.21, -44.58) |
| CIE-LCH | lch(18.43, 58.72, 310.60°) |
| OKLab | oklab(31.41% 0.063 -0.1277) |
| OKLCH | oklch(31.41% 0.142 296.2) |
| XYZ | xyz(4.9403, 2.6137, 15.2801) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.22
Indigo (survey)
#380282
ΔE00 4.28
Indigo
#4B0082
ΔE00 4.52
Midnight Blue
#191970
ΔE00 5.64
Dark Indigo
#1F0954
ΔE00 6.00
Dark Royal Blue
#02066F
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B156F #496F15
analogous
#151C6F #3B156F #68156F
triadic
#3B156F #6F3B15 #156F3B
tetradic
#3B156F #6F151C #496F15 #156F68
square
#3B156F #6F151C #496F15 #156F68
split-complementary
#3B156F #6F6815 #1C6F15
monochromatic
#0E051A #200B3C #3B156F #561FA2 #7228D6
Accessibility & contrast
On white
13.79
#3B156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#3B156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B156F
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B156F | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2D2E42
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3b156f; /* rgb */ color: rgb(59, 21, 111); /* oklch */ color: oklch(31.4% 0.142 296.2);
Tailwind
colors: {
custom: {
50: '#775799',
500: '#3b156f',
950: '#000000',
},
}SCSS
$custom: #3b156f; $custom-light: #775799; $custom-dark: #000000;
JSON
{
"hex": "#3b156f",
"rgb": {
"r": 59,
"g": 21,
"b": 111
},
"hsl": {
"h": 265.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.31412,
"c": 0.14239,
"h": 296.2
},
"luminance": 0.02614
}Semantic roles & 50–950 ramp
primary
#3B156F
secondary
#78A53A
accent
#EB3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E