#3D287F#3D287F
#3D287F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.139 H 288.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).
Color values
| HEX | #3D287F |
|---|---|
| RGB | rgb(61, 40, 127) |
| HSL | hsl(254, 52%, 33%) |
| HSV | hsv(254, 69%, 50%) |
| CMYK | cmyk(52%, 68.5%, 0%, 50.2%) |
| CIE-LAB | lab(23.81, 33.01, -46.01) |
| CIE-LCH | lch(23.81, 56.63, 305.66°) |
| OKLab | oklab(35.74% 0.0439 -0.132) |
| OKLCH | oklch(35.74% 0.139 288.4) |
| XYZ | xyz(6.5129, 4.0417, 20.5115) |
| Luminance | 0.0404 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.97
Darkslateblue
#483D8B
ΔE00 5.97
Indigo (survey)
#380282
ΔE00 6.80
Royal
#0C1793
ΔE00 6.98
Indigo
#4B0082
ΔE00 7.10
Blueberry
#464196
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D287F #6A7F28
analogous
#283E7F #3D287F #69287F
triadic
#3D287F #7F3D28 #287F3D
tetradic
#3D287F #7F283E #6A7F28 #287F69
square
#3D287F #7F283E #6A7F28 #287F69
split-complementary
#3D287F #7F6928 #3E7F28
monochromatic
#100B22 #271950 #3D287F #5337AE #7357CA
Accessibility & contrast
On white
11.61
#3D287F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3D287F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D287F
11.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D287F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D287F | 1.00 | 11.61 | 1.81 | 11.61 |
| #FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#263E50
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d287f; /* rgb */ color: rgb(61, 40, 127); /* oklch */ color: oklch(35.7% 0.139 288.4);
Tailwind
colors: {
custom: {
50: '#7963a5',
500: '#3d287f',
950: '#000000',
},
}SCSS
$custom: #3d287f; $custom-light: #7963a5; $custom-dark: #000000;
JSON
{
"hex": "#3d287f",
"rgb": {
"r": 61,
"g": 40,
"b": 127
},
"hsl": {
"h": 254.483,
"s": 52.096,
"l": 32.745
},
"oklch": {
"l": 0.35741,
"c": 0.13906,
"h": 288.4
},
"luminance": 0.04042
}Semantic roles & 50–950 ramp
primary
#3D287F
secondary
#99AF54
accent
#DC4CB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F