#3B229F#3B229F
#3B229F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.186 H 282.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3B229F |
|---|---|
| RGB | rgb(59, 34, 159) |
| HSL | hsl(252, 65%, 38%) |
| HSV | hsv(252, 79%, 62%) |
| CMYK | cmyk(62.9%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(25.49, 45.90, -63.11) |
| CIE-LCH | lch(25.49, 78.03, 306.03°) |
| OKLab | oklab(37.82% 0.0386 -0.182) |
| OKLCH | oklch(37.82% 0.186 282) |
| XYZ | xyz(8.6317, 4.5764, 33.2226) |
| Luminance | 0.0458 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.82
Royal
#0C1793
ΔE00 4.90
Ultramarine
#2000B1
ΔE00 5.08
Cobalt Blue
#030AA7
ΔE00 5.18
Royal Blue (survey)
#0504AA
ΔE00 5.48
True Blue
#010FCC
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B229F #869F22
analogous
#22479F #3B229F #79229F
triadic
#3B229F #9F3B22 #229F3B
tetradic
#3B229F #9F2247 #869F22 #229F79
square
#3B229F #9F2247 #869F22 #229F79
split-complementary
#3B229F #9F7922 #479F22
monochromatic
#160C3A #28176D #3B229F #4E2DD1 #785FDD
Accessibility & contrast
On white
10.96
#3B229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3B229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B229F
10.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B229F | 1.00 | 10.96 | 1.92 | 10.96 |
| #FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3b229f; /* rgb */ color: rgb(59, 34, 159); /* oklch */ color: oklch(37.8% 0.186 282.0);
Tailwind
colors: {
custom: {
50: '#7e61bd',
500: '#3b229f',
950: '#000000',
},
}SCSS
$custom: #3b229f; $custom-light: #7e61bd; $custom-dark: #000000;
JSON
{
"hex": "#3b229f",
"rgb": {
"r": 59,
"g": 34,
"b": 159
},
"hsl": {
"h": 252,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.37818,
"c": 0.1861,
"h": 282
},
"luminance": 0.04577
}Semantic roles & 50–950 ramp
primary
#3B229F
secondary
#ADC15B
accent
#E840C6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981