#3D238D#3D238D
#3D238D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.163 H 286.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #3D238D |
|---|---|
| RGB | rgb(61, 35, 141) |
| HSL | hsl(255, 60%, 35%) |
| HSV | hsv(255, 75%, 55%) |
| CMYK | cmyk(56.7%, 75.2%, 0%, 44.7%) |
| CIE-LAB | lab(24.05, 40.20, -54.39) |
| CIE-LCH | lch(24.05, 67.63, 306.47°) |
| OKLab | oklab(36.31% 0.0458 -0.1565) |
| OKLCH | oklch(36.31% 0.163 286.3) |
| XYZ | xyz(7.3318, 4.1168, 25.6024) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.20
Indigo Blue
#3A18B1
ΔE00 5.37
Indigo (survey)
#380282
ΔE00 5.42
Indigo
#4B0082
ΔE00 5.98
Midnight Blue
#191970
ΔE00 6.47
Cobalt Blue
#030AA7
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D238D #738D23
analogous
#233E8D #3D238D #72238D
triadic
#3D238D #8D3D23 #238D3D
tetradic
#3D238D #8D233E #738D23 #238D72
square
#3D238D #8D233E #738D23 #238D72
split-complementary
#3D238D #8D7223 #3E8D23
monochromatic
#130B2B #28175C #3D238D #522FBE #7555D5
Accessibility & contrast
On white
11.52
#3D238D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3D238D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D238D
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D238D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D238D | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#194056
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d238d; /* rgb */ color: rgb(61, 35, 141); /* oklch */ color: oklch(36.3% 0.163 286.3);
Tailwind
colors: {
custom: {
50: '#7c61af',
500: '#3d238d',
950: '#000000',
},
}SCSS
$custom: #3d238d; $custom-light: #7c61af; $custom-dark: #000000;
JSON
{
"hex": "#3d238d",
"rgb": {
"r": 61,
"g": 35,
"b": 141
},
"hsl": {
"h": 254.717,
"s": 60.227,
"l": 34.51
},
"oklch": {
"l": 0.36309,
"c": 0.16307,
"h": 286.3
},
"luminance": 0.04117
}Semantic roles & 50–950 ramp
primary
#3D238D
secondary
#A0B953
accent
#E344BC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F