#3D237E#3D237E
#3D237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.144 H 289.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).
Color values
| HEX | #3D237E |
|---|---|
| RGB | rgb(61, 35, 126) |
| HSL | hsl(257, 57%, 32%) |
| HSV | hsv(257, 72%, 49%) |
| CMYK | cmyk(51.6%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(22.65, 35.63, -47.27) |
| CIE-LCH | lch(22.65, 59.19, 307.01°) |
| OKLab | oklab(34.89% 0.0492 -0.1356) |
| OKLCH | oklch(34.89% 0.144 289.9) |
| XYZ | xyz(6.2903, 3.7003, 20.1174) |
| Luminance | 0.0370 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.55
Midnight Blue
#191970
ΔE00 5.56
Indigo
#4B0082
ΔE00 5.88
Royal
#0C1793
ΔE00 6.50
Royal Purple (survey)
#4B006E
ΔE00 7.09
Darkslateblue
#483D8B
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D237E #647E23
analogous
#23377E #3D237E #6B237E
triadic
#3D237E #7E3D23 #237E3D
tetradic
#3D237E #7E2337 #647E23 #237E6B
square
#3D237E #7E2337 #647E23 #237E6B
split-complementary
#3D237E #7E6B23 #377E23
monochromatic
#0F081E #26164E #3D237E #5430AE #724ECE
Accessibility & contrast
On white
12.07
#3D237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3D237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D237E
12.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D237E | 1.00 | 12.07 | 1.74 | 12.07 |
| #FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#273A4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d237e; /* rgb */ color: rgb(61, 35, 126); /* oklch */ color: oklch(34.9% 0.144 289.9);
Tailwind
colors: {
custom: {
50: '#7960a4',
500: '#3d237e',
950: '#000000',
},
}SCSS
$custom: #3d237e; $custom-light: #7960a4; $custom-dark: #000000;
JSON
{
"hex": "#3d237e",
"rgb": {
"r": 61,
"g": 35,
"b": 126
},
"hsl": {
"h": 257.143,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.34886,
"c": 0.14425,
"h": 289.9
},
"luminance": 0.03701
}Semantic roles & 50–950 ramp
primary
#3D237E
secondary
#94B04C
accent
#E048B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F