#3B228F#3B228F
#3B228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.167 H 285.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #3B228F |
|---|---|
| RGB | rgb(59, 34, 143) |
| HSL | hsl(254, 62%, 35%) |
| HSV | hsv(254, 76%, 56%) |
| CMYK | cmyk(58.7%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(23.86, 41.05, -55.96) |
| CIE-LCH | lch(23.86, 69.40, 306.26°) |
| OKLab | oklab(36.18% 0.043 -0.1612) |
| OKLCH | oklch(36.18% 0.167 285) |
| XYZ | xyz(7.3321, 4.0566, 26.3779) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.76
Indigo Blue
#3A18B1
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 5.31
Indigo
#4B0082
ΔE00 6.05
Cobalt Blue
#030AA7
ΔE00 6.12
Midnight Blue
#191970
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B228F #768F22
analogous
#22408F #3B228F #71228F
triadic
#3B228F #8F3B22 #228F3B
tetradic
#3B228F #8F2240 #768F22 #228F71
square
#3B228F #8F2240 #768F22 #228F71
split-complementary
#3B228F #8F7122 #408F22
monochromatic
#120A2C #27165E #3B228F #4F2EC0 #7355D7
Accessibility & contrast
On white
11.59
#3B228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3B228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B228F
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B228F | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#0E4057
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3b228f; /* rgb */ color: rgb(59, 34, 143); /* oklch */ color: oklch(36.2% 0.167 285.0);
Tailwind
colors: {
custom: {
50: '#7b60b1',
500: '#3b228f',
950: '#000000',
},
}SCSS
$custom: #3b228f; $custom-light: #7b60b1; $custom-dark: #000000;
JSON
{
"hex": "#3b228f",
"rgb": {
"r": 59,
"g": 34,
"b": 143
},
"hsl": {
"h": 253.761,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.36181,
"c": 0.16681,
"h": 285
},
"luminance": 0.04057
}Semantic roles & 50–950 ramp
primary
#3B228F
secondary
#A3BA52
accent
#E543C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980