#3B229E#3B229E
#3B229E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.185 H 282.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).
Color values
| HEX | #3B229E |
|---|---|
| RGB | rgb(59, 34, 158) |
| HSL | hsl(252, 65%, 38%) |
| HSV | hsv(252, 78%, 62%) |
| CMYK | cmyk(62.7%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(25.39, 45.60, -62.67) |
| CIE-LCH | lch(25.39, 77.50, 306.04°) |
| OKLab | oklab(37.71% 0.0389 -0.1808) |
| OKLCH | oklch(37.71% 0.185 282.2) |
| XYZ | xyz(8.5453, 4.5419, 32.7675) |
| Luminance | 0.0454 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.94
Royal
#0C1793
ΔE00 4.85
Ultramarine
#2000B1
ΔE00 5.14
Cobalt Blue
#030AA7
ΔE00 5.20
Royal Blue (survey)
#0504AA
ΔE00 5.51
True Blue
#010FCC
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B229E #859E22
analogous
#22479E #3B229E #79229E
triadic
#3B229E #9E3B22 #229E3B
tetradic
#3B229E #9E2247 #859E22 #229E79
square
#3B229E #9E2247 #859E22 #229E79
split-complementary
#3B229E #9E7922 #479E22
monochromatic
#150C39 #28176C #3B229E #4E2DD0 #785EDC
Accessibility & contrast
On white
11.00
#3B229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#3B229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B229E
11.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B229E | 1.00 | 11.00 | 1.91 | 11.00 |
| #FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3b229e; /* rgb */ color: rgb(59, 34, 158); /* oklch */ color: oklch(37.7% 0.185 282.2);
Tailwind
colors: {
custom: {
50: '#7e61bc',
500: '#3b229e',
950: '#000000',
},
}SCSS
$custom: #3b229e; $custom-light: #7e61bc; $custom-dark: #000000;
JSON
{
"hex": "#3b229e",
"rgb": {
"r": 59,
"g": 34,
"b": 158
},
"hsl": {
"h": 252.097,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.37714,
"c": 0.18491,
"h": 282.2
},
"luminance": 0.04542
}Semantic roles & 50–950 ramp
primary
#3B229E
secondary
#ACC15B
accent
#E840C6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981