#3E237B#3E237B
#3E237B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.140 H 291.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3E237B |
|---|---|
| RGB | rgb(62, 35, 123) |
| HSL | hsl(258, 56%, 31%) |
| HSV | hsv(258, 72%, 48%) |
| CMYK | cmyk(49.6%, 71.5%, 0%, 51.8%) |
| CIE-LAB | lab(22.50, 34.91, -45.61) |
| CIE-LCH | lch(22.50, 57.44, 307.43°) |
| OKLab | oklab(34.72% 0.0513 -0.1307) |
| OKLCH | oklch(34.72% 0.14 291.4) |
| XYZ | xyz(6.1618, 3.6560, 19.1161) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.69
Indigo (survey)
#380282
ΔE00 5.74
Indigo
#4B0082
ΔE00 5.90
Royal Purple (survey)
#4B006E
ΔE00 6.82
Royal
#0C1793
ΔE00 7.02
Darkslateblue
#483D8B
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E237B #607B23
analogous
#23347B #3E237B #6A237B
triadic
#3E237B #7B3E23 #237B3E
tetradic
#3E237B #7B2334 #607B23 #237B6A
square
#3E237B #7B2334 #607B23 #237B6A
split-complementary
#3E237B #7B6A23 #347B23
monochromatic
#0E081C #26154B #3E237B #5631AB #734CCC
Accessibility & contrast
On white
12.13
#3E237B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3E237B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E237B
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E237B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E237B | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#2B394C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3e237b; /* rgb */ color: rgb(62, 35, 123); /* oklch */ color: oklch(34.7% 0.140 291.4);
Tailwind
colors: {
custom: {
50: '#7a60a2',
500: '#3e237b',
950: '#000000',
},
}SCSS
$custom: #3e237b; $custom-light: #7a60a2; $custom-dark: #000000;
JSON
{
"hex": "#3e237b",
"rgb": {
"r": 62,
"g": 35,
"b": 123
},
"hsl": {
"h": 258.409,
"s": 55.696,
"l": 30.98
},
"oklch": {
"l": 0.34719,
"c": 0.14041,
"h": 291.4
},
"luminance": 0.03656
}Semantic roles & 50–950 ramp
primary
#3E237B
secondary
#90AE4C
accent
#DF49B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F