#3B166E#3B166E
#3B166E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.140 H 296.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).
Color values
| HEX | #3B166E |
|---|---|
| RGB | rgb(59, 22, 110) |
| HSL | hsl(265, 67%, 26%) |
| HSV | hsv(265, 80%, 43%) |
| CMYK | cmyk(46.4%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(18.49, 37.47, -43.82) |
| CIE-LCH | lch(18.49, 57.65, 310.53°) |
| OKLab | oklab(31.43% 0.0624 -0.1255) |
| OKLCH | oklch(31.43% 0.14 296.4) |
| XYZ | xyz(4.9043, 2.6293, 14.9979) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.33
Indigo (survey)
#380282
ΔE00 4.57
Indigo
#4B0082
ΔE00 4.75
Midnight Blue
#191970
ΔE00 5.65
Dark Indigo
#1F0954
ΔE00 5.94
Dark Royal Blue
#02066F
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B166E #496E16
analogous
#161D6E #3B166E #67166E
triadic
#3B166E #6E3B16 #166E3B
tetradic
#3B166E #6E161D #496E16 #166E67
square
#3B166E #6E161D #496E16 #166E67
split-complementary
#3B166E #6E6716 #1D6E16
monochromatic
#0E051A #200C3B #3B166E #5620A1 #722AD4
Accessibility & contrast
On white
13.76
#3B166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#3B166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B166E
13.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B166E | 1.00 | 13.76 | 1.53 | 13.76 |
| #FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#2D2E41
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3b166e; /* rgb */ color: rgb(59, 22, 110); /* oklch */ color: oklch(31.4% 0.140 296.4);
Tailwind
colors: {
custom: {
50: '#775898',
500: '#3b166e',
950: '#000000',
},
}SCSS
$custom: #3b166e; $custom-light: #775898; $custom-dark: #000000;
JSON
{
"hex": "#3b166e",
"rgb": {
"r": 59,
"g": 22,
"b": 110
},
"hsl": {
"h": 265.227,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.3143,
"c": 0.14013,
"h": 296.4
},
"luminance": 0.02629
}Semantic roles & 50–950 ramp
primary
#3B166E
secondary
#78A43C
accent
#EA3EA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E