#3E238B#3E238B
#3E238B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.161 H 287.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #3E238B |
|---|---|
| RGB | rgb(62, 35, 139) |
| HSL | hsl(256, 60%, 34%) |
| HSV | hsv(256, 75%, 55%) |
| CMYK | cmyk(55.4%, 74.8%, 0%, 45.5%) |
| CIE-LAB | lab(23.97, 39.75, -53.28) |
| CIE-LCH | lch(23.97, 66.47, 306.72°) |
| OKLab | oklab(36.21% 0.0478 -0.1532) |
| OKLCH | oklch(36.21% 0.161 287.3) |
| XYZ | xyz(7.2465, 4.0899, 24.8287) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.36
Royal
#0C1793
ΔE00 5.44
Indigo Blue
#3A18B1
ΔE00 5.69
Indigo
#4B0082
ΔE00 5.82
Midnight Blue
#191970
ΔE00 6.42
Cobalt Blue
#030AA7
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E238B #708B23
analogous
#233C8B #3E238B #72238B
triadic
#3E238B #8B3E23 #238B3E
tetradic
#3E238B #8B233C #708B23 #238B72
square
#3E238B #8B233C #708B23 #238B72
split-complementary
#3E238B #8B7223 #3C8B23
monochromatic
#120A29 #28175A #3E238B #542FBC #7654D4
Accessibility & contrast
On white
11.55
#3E238B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#3E238B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E238B
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E238B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E238B | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 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: #3e238b; /* rgb */ color: rgb(62, 35, 139); /* oklch */ color: oklch(36.2% 0.161 287.3);
Tailwind
colors: {
custom: {
50: '#7c61ae',
500: '#3e238b',
950: '#000000',
},
}SCSS
$custom: #3e238b; $custom-light: #7c61ae; $custom-dark: #000000;
JSON
{
"hex": "#3e238b",
"rgb": {
"r": 62,
"g": 35,
"b": 139
},
"hsl": {
"h": 255.577,
"s": 59.77,
"l": 34.118
},
"oklch": {
"l": 0.36213,
"c": 0.16052,
"h": 287.3
},
"luminance": 0.0409
}Semantic roles & 50–950 ramp
primary
#3E238B
secondary
#9DB852
accent
#E345BA
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F