#3D237F#3D237F
#3D237F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.146 H 289.7°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #3D237F |
|---|---|
| RGB | rgb(61, 35, 127) |
| HSL | hsl(257, 57%, 32%) |
| HSV | hsv(257, 72%, 50%) |
| CMYK | cmyk(52%, 72.4%, 0%, 50.2%) |
| CIE-LAB | lab(22.74, 35.94, -47.75) |
| CIE-LCH | lch(22.74, 59.76, 306.96°) |
| OKLab | oklab(34.98% 0.049 -0.137) |
| OKLCH | oklch(34.98% 0.146 289.7) |
| XYZ | xyz(6.3552, 3.7262, 20.4589) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.50
Midnight Blue
#191970
ΔE00 5.58
Indigo
#4B0082
ΔE00 5.85
Royal
#0C1793
ΔE00 6.38
Royal Purple (survey)
#4B006E
ΔE00 7.15
Darkslateblue
#483D8B
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D237F #657F23
analogous
#23377F #3D237F #6B237F
triadic
#3D237F #7F3D23 #237F3D
tetradic
#3D237F #7F2337 #657F23 #237F6B
square
#3D237F #7F2337 #657F23 #237F6B
split-complementary
#3D237F #7F6B23 #377F23
monochromatic
#0F091F #26164F #3D237F #5430AF #724ECE
Accessibility & contrast
On white
12.03
#3D237F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#3D237F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D237F
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D237F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D237F | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#263B4E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3d237f; /* rgb */ color: rgb(61, 35, 127); /* oklch */ color: oklch(35.0% 0.146 289.7);
Tailwind
colors: {
custom: {
50: '#7a60a5',
500: '#3d237f',
950: '#000000',
},
}SCSS
$custom: #3d237f; $custom-light: #7a60a5; $custom-dark: #000000;
JSON
{
"hex": "#3d237f",
"rgb": {
"r": 61,
"g": 35,
"b": 127
},
"hsl": {
"h": 256.957,
"s": 56.79,
"l": 31.765
},
"oklch": {
"l": 0.34978,
"c": 0.14553,
"h": 289.7
},
"luminance": 0.03726
}Semantic roles & 50–950 ramp
primary
#3D237F
secondary
#95B14C
accent
#E048B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F