#3D1B94#3D1B94
#3D1B94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.179 H 286.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #3D1B94 |
|---|---|
| RGB | rgb(61, 27, 148) |
| HSL | hsl(257, 69%, 34%) |
| HSV | hsv(257, 82%, 58%) |
| CMYK | cmyk(58.8%, 81.8%, 0%, 42%) |
| CIE-LAB | lab(23.38, 46.22, -59.83) |
| CIE-LCH | lch(23.38, 75.60, 307.69°) |
| OKLab | oklab(36.05% 0.0495 -0.1723) |
| OKLCH | oklch(36.05% 0.179 286) |
| XYZ | xyz(7.6601, 3.9136, 28.3630) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.99
Indigo (survey)
#380282
ΔE00 4.39
Royal
#0C1793
ΔE00 4.58
Indigo
#4B0082
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 5.18
Ultramarine
#2000B1
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D1B94 #72941B
analogous
#1B3594 #3D1B94 #7A1B94
triadic
#3D1B94 #943D1B #1B943D
tetradic
#3D1B94 #941B35 #72941B #1B947A
square
#3D1B94 #941B35 #72941B #1B947A
split-complementary
#3D1B94 #947A1B #35941B
monochromatic
#12082C #281260 #3D1B94 #5224C8 #754BDE
Accessibility & contrast
On white
11.78
#3D1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3D1B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D1B94
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D1B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D1B94 | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#0F3F58
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3d1b94; /* rgb */ color: rgb(61, 27, 148); /* oklch */ color: oklch(36.1% 0.179 286.0);
Tailwind
colors: {
custom: {
50: '#7e5db5',
500: '#3d1b94',
950: '#000000',
},
}SCSS
$custom: #3d1b94; $custom-light: #7e5db5; $custom-dark: #000000;
JSON
{
"hex": "#3d1b94",
"rgb": {
"r": 61,
"g": 27,
"b": 148
},
"hsl": {
"h": 256.86,
"s": 69.143,
"l": 34.314
},
"oklch": {
"l": 0.36054,
"c": 0.17931,
"h": 286
},
"luminance": 0.03914
}Semantic roles & 50–950 ramp
primary
#3D1B94
secondary
#9FC04B
accent
#EC3CBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980