#3D238F#3D238F
#3D238F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.166 H 285.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #3D238F |
|---|---|
| RGB | rgb(61, 35, 143) |
| HSL | hsl(254, 61%, 35%) |
| HSV | hsv(254, 76%, 56%) |
| CMYK | cmyk(57.3%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.25, 40.80, -55.31) |
| CIE-LCH | lch(24.25, 68.73, 306.42°) |
| OKLab | oklab(36.5% 0.0453 -0.1592) |
| OKLCH | oklch(36.5% 0.166 285.9) |
| XYZ | xyz(7.4819, 4.1769, 26.3932) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.07
Royal
#0C1793
ΔE00 5.11
Indigo (survey)
#380282
ΔE00 5.50
Indigo
#4B0082
ΔE00 6.06
Cobalt Blue
#030AA7
ΔE00 6.42
Midnight Blue
#191970
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D238F #758F23
analogous
#233F8F #3D238F #73238F
triadic
#3D238F #8F3D23 #238F3D
tetradic
#3D238F #8F233F #758F23 #238F73
square
#3D238F #8F233F #758F23 #238F73
split-complementary
#3D238F #8F7323 #3F8F23
monochromatic
#130B2D #28175E #3D238F #522FC0 #7557D6
Accessibility & contrast
On white
11.44
#3D238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3D238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D238F
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D238F | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#164157
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3d238f; /* rgb */ color: rgb(61, 35, 143); /* oklch */ color: oklch(36.5% 0.166 285.9);
Tailwind
colors: {
custom: {
50: '#7c61b1',
500: '#3d238f',
950: '#000000',
},
}SCSS
$custom: #3d238f; $custom-light: #7c61b1; $custom-dark: #000000;
JSON
{
"hex": "#3d238f",
"rgb": {
"r": 61,
"g": 35,
"b": 143
},
"hsl": {
"h": 254.444,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.36505,
"c": 0.16553,
"h": 285.9
},
"luminance": 0.04177
}Semantic roles & 50–950 ramp
primary
#3D238F
secondary
#A1BA54
accent
#E444BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980