#34236E#34236E
#34236E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.5% C 0.123 H 287.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).
Color values
| HEX | #34236E |
|---|---|
| RGB | rgb(52, 35, 110) |
| HSL | hsl(254, 52%, 28%) |
| HSV | hsv(254, 68%, 43%) |
| CMYK | cmyk(52.7%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(20.27, 28.86, -40.95) |
| CIE-LCH | lch(20.27, 50.09, 305.18°) |
| OKLab | oklab(32.51% 0.038 -0.1174) |
| OKLCH | oklch(32.51% 0.123 287.9) |
| XYZ | xyz(4.8309, 3.0577, 15.0845) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.54
Dark Indigo
#1F0954
ΔE00 6.97
Indigo (survey)
#380282
ΔE00 7.22
Darkblue (survey)
#030764
ΔE00 7.89
Royal
#0C1793
ΔE00 7.91
Indigo
#4B0082
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#34236E #5D6E23
analogous
#23376E #34236E #59236E
triadic
#34236E #6E3423 #236E34
tetradic
#34236E #6E2337 #5D6E23 #236E59
square
#34236E #6E2337 #5D6E23 #236E59
split-complementary
#34236E #6E5923 #376E23
monochromatic
#0B0717 #1E1440 #34236E #4A329C #6347C4
Accessibility & contrast
On white
13.03
#34236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#34236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #34236E
13.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##34236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##34236E | 1.00 | 13.03 | 1.61 | 13.03 |
| #FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#1F3545
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #34236e; /* rgb */ color: rgb(52, 35, 110); /* oklch */ color: oklch(32.5% 0.123 287.9);
Tailwind
colors: {
custom: {
50: '#715f98',
500: '#34236e',
950: '#000000',
},
}SCSS
$custom: #34236e; $custom-light: #715f98; $custom-dark: #000000;
JSON
{
"hex": "#34236e",
"rgb": {
"r": 52,
"g": 35,
"b": 110
},
"hsl": {
"h": 253.6,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.32506,
"c": 0.12337,
"h": 287.9
},
"luminance": 0.03058
}Semantic roles & 50–950 ramp
primary
#34236E
secondary
#8EA14C
accent
#DB4DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E