#3E228B#3E228B
#3E228B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.162 H 287.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3E228B |
|---|---|
| RGB | rgb(62, 34, 139) |
| HSL | hsl(256, 61%, 34%) |
| HSV | hsv(256, 76%, 55%) |
| CMYK | cmyk(55.4%, 75.5%, 0%, 45.5%) |
| CIE-LAB | lab(23.78, 40.28, -53.59) |
| CIE-LCH | lch(23.78, 67.04, 306.93°) |
| OKLab | oklab(36.08% 0.0487 -0.1541) |
| OKLCH | oklch(36.08% 0.162 287.5) |
| XYZ | xyz(7.2175, 4.0319, 24.8190) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.14
Royal
#0C1793
ΔE00 5.36
Indigo
#4B0082
ΔE00 5.61
Indigo Blue
#3A18B1
ΔE00 5.62
Midnight Blue
#191970
ΔE00 6.39
Cobalt Blue
#030AA7
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E228B #6F8B22
analogous
#223B8B #3E228B #73228B
triadic
#3E228B #8B3E22 #228B3E
tetradic
#3E228B #8B223B #6F8B22 #228B73
square
#3E228B #8B223B #6F8B22 #228B73
split-complementary
#3E228B #8B7322 #3B8B22
monochromatic
#120A29 #28165A #3E228B #542EBC #7553D5
Accessibility & contrast
On white
11.63
#3E228B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3E228B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E228B
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E228B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E228B | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#1E3F55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3e228b; /* rgb */ color: rgb(62, 34, 139); /* oklch */ color: oklch(36.1% 0.162 287.5);
Tailwind
colors: {
custom: {
50: '#7c60ae',
500: '#3e228b',
950: '#000000',
},
}SCSS
$custom: #3e228b; $custom-light: #7c60ae; $custom-dark: #000000;
JSON
{
"hex": "#3e228b",
"rgb": {
"r": 62,
"g": 34,
"b": 139
},
"hsl": {
"h": 256,
"s": 60.694,
"l": 33.922
},
"oklch": {
"l": 0.36079,
"c": 0.16164,
"h": 287.5
},
"luminance": 0.04032
}Semantic roles & 50–950 ramp
primary
#3E228B
secondary
#9DB850
accent
#E444B9
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F