#3E268B#3E268B
#3E268B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.157 H 286.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #3E268B |
|---|---|
| RGB | rgb(62, 38, 139) |
| HSL | hsl(254, 57%, 35%) |
| HSV | hsv(254, 73%, 55%) |
| CMYK | cmyk(55.4%, 72.7%, 0%, 45.5%) |
| CIE-LAB | lab(24.56, 38.09, -52.31) |
| CIE-LCH | lch(24.56, 64.71, 306.06°) |
| OKLab | oklab(36.63% 0.0452 -0.1504) |
| OKLCH | oklch(36.63% 0.157 286.7) |
| XYZ | xyz(7.3385, 4.2741, 24.8594) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.75
Indigo Blue
#3A18B1
ΔE00 5.96
Indigo (survey)
#380282
ΔE00 6.06
Indigo
#4B0082
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 6.50
Midnight Blue
#191970
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E268B #738B26
analogous
#26418B #3E268B #70268B
triadic
#3E268B #8B3E26 #268B3E
tetradic
#3E268B #8B2641 #738B26 #268B70
square
#3E268B #8B2641 #738B26 #268B70
split-complementary
#3E268B #8B7026 #418B26
monochromatic
#130C2B #29195B #3E268B #5333BB #765AD2
Accessibility & contrast
On white
11.32
#3E268B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#3E268B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E268B
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E268B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E268B | 1.00 | 11.32 | 1.85 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#1E4156
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3e268b; /* rgb */ color: rgb(62, 38, 139); /* oklch */ color: oklch(36.6% 0.157 286.7);
Tailwind
colors: {
custom: {
50: '#7c63ae',
500: '#3e268b',
950: '#000000',
},
}SCSS
$custom: #3e268b; $custom-light: #7c63ae; $custom-dark: #000000;
JSON
{
"hex": "#3e268b",
"rgb": {
"r": 62,
"g": 38,
"b": 139
},
"hsl": {
"h": 254.257,
"s": 57.062,
"l": 34.706
},
"oklch": {
"l": 0.36633,
"c": 0.15705,
"h": 286.7
},
"luminance": 0.04274
}Semantic roles & 50–950 ramp
primary
#3E268B
secondary
#A0B756
accent
#E047BC
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F