#3B238E#3B238E
#3B238E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.165 H 285.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #3B238E |
|---|---|
| RGB | rgb(59, 35, 142) |
| HSL | hsl(253, 60%, 35%) |
| HSV | hsv(253, 75%, 56%) |
| CMYK | cmyk(58.5%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(23.95, 40.20, -55.19) |
| CIE-LCH | lch(23.95, 68.28, 306.07°) |
| OKLab | oklab(36.22% 0.0425 -0.1589) |
| OKLCH | oklch(36.22% 0.165 285) |
| XYZ | xyz(7.2857, 4.0844, 25.9904) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.89
Indigo Blue
#3A18B1
ΔE00 5.21
Indigo (survey)
#380282
ΔE00 5.48
Indigo
#4B0082
ΔE00 6.20
Cobalt Blue
#030AA7
ΔE00 6.35
Midnight Blue
#191970
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B238E #768E23
analogous
#23418E #3B238E #71238E
triadic
#3B238E #8E3B23 #238E3B
tetradic
#3B238E #8E2341 #768E23 #238E71
square
#3B238E #8E2341 #768E23 #238E71
split-complementary
#3B238E #8E7123 #418E23
monochromatic
#120B2C #27175D #3B238E #4F2FBF #7356D5
Accessibility & contrast
On white
11.56
#3B238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3B238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B238E
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B238E | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#104156
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3b238e; /* rgb */ color: rgb(59, 35, 142); /* oklch */ color: oklch(36.2% 0.165 285.0);
Tailwind
colors: {
custom: {
50: '#7b61b0',
500: '#3b238e',
950: '#000000',
},
}SCSS
$custom: #3b238e; $custom-light: #7b61b0; $custom-dark: #000000;
JSON
{
"hex": "#3b238e",
"rgb": {
"r": 59,
"g": 35,
"b": 142
},
"hsl": {
"h": 253.458,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.36215,
"c": 0.1645,
"h": 285
},
"luminance": 0.04085
}Semantic roles & 50–950 ramp
primary
#3B238E
secondary
#A3B953
accent
#E444C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980