#3A236E#3A236E
#3A236E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.123 H 292.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #3A236E |
|---|---|
| RGB | rgb(58, 35, 110) |
| HSL | hsl(258, 52%, 28%) |
| HSV | hsv(258, 68%, 43%) |
| CMYK | cmyk(47.3%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(20.93, 30.13, -39.85) |
| CIE-LCH | lch(20.93, 49.96, 307.10°) |
| OKLab | oklab(33.14% 0.0471 -0.1139) |
| OKLCH | oklch(33.14% 0.123 292.5) |
| XYZ | xyz(5.1597, 3.2272, 15.0999) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.55
Indigo (survey)
#380282
ΔE00 7.09
Royal Purple (survey)
#4B006E
ΔE00 7.13
Dark Indigo
#1F0954
ΔE00 7.25
Indigo
#4B0082
ΔE00 7.30
Darkslateblue
#483D8B
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A236E #576E23
analogous
#23316E #3A236E #5F236E
triadic
#3A236E #6E3A23 #236E3A
tetradic
#3A236E #6E2331 #576E23 #236E5F
square
#3A236E #6E2331 #576E23 #236E5F
split-complementary
#3A236E #6E5F23 #316E23
monochromatic
#0C0717 #221440 #3A236E #52329C #6D47C4
Accessibility & contrast
On white
12.76
#3A236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3A236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A236E
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A236E | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#2B3545
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3a236e; /* rgb */ color: rgb(58, 35, 110); /* oklch */ color: oklch(33.1% 0.123 292.5);
Tailwind
colors: {
custom: {
50: '#755f98',
500: '#3a236e',
950: '#000000',
},
}SCSS
$custom: #3a236e; $custom-light: #755f98; $custom-dark: #000000;
JSON
{
"hex": "#3a236e",
"rgb": {
"r": 58,
"g": 35,
"b": 110
},
"hsl": {
"h": 258.4,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.33138,
"c": 0.12329,
"h": 292.5
},
"luminance": 0.03227
}Semantic roles & 50–950 ramp
primary
#3A236E
secondary
#87A14C
accent
#DB4DAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E