#3A166B#3A166B
#3A166B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.137 H 296.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #3A166B |
|---|---|
| RGB | rgb(58, 22, 107) |
| HSL | hsl(265, 66%, 25%) |
| HSV | hsv(265, 79%, 42%) |
| CMYK | cmyk(45.8%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(18.08, 36.45, -42.55) |
| CIE-LCH | lch(18.08, 56.03, 310.58°) |
| OKLab | oklab(31.02% 0.0616 -0.1218) |
| OKLCH | oklch(31.02% 0.137 296.8) |
| XYZ | xyz(4.6850, 2.5348, 14.1495) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.45
Indigo (survey)
#380282
ΔE00 5.01
Indigo
#4B0082
ΔE00 5.20
Dark Indigo
#1F0954
ΔE00 5.58
Midnight Blue
#191970
ΔE00 5.68
Dark Royal Blue
#02066F
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A166B #476B16
analogous
#161C6B #3A166B #64166B
triadic
#3A166B #6B3A16 #166B3A
tetradic
#3A166B #6B161C #476B16 #166B64
square
#3A166B #6B161C #476B16 #166B64
split-complementary
#3A166B #6B6416 #1C6B16
monochromatic
#0E0519 #1E0C38 #3A166B #56209E #712BD1
Accessibility & contrast
On white
13.93
#3A166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#3A166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A166B
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A166B | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2D2D3F
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #3a166b; /* rgb */ color: rgb(58, 22, 107); /* oklch */ color: oklch(31.0% 0.137 296.8);
Tailwind
colors: {
custom: {
50: '#765796',
500: '#3a166b',
950: '#000000',
},
}SCSS
$custom: #3a166b; $custom-light: #765796; $custom-dark: #000000;
JSON
{
"hex": "#3a166b",
"rgb": {
"r": 58,
"g": 22,
"b": 107
},
"hsl": {
"h": 265.412,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.3102,
"c": 0.1365,
"h": 296.8
},
"luminance": 0.02535
}Semantic roles & 50–950 ramp
primary
#3A166B
secondary
#76A13B
accent
#E93FA1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E