#3B218F#3B218F
#3B218F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.168 H 285.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #3B218F |
|---|---|
| RGB | rgb(59, 33, 143) |
| HSL | hsl(254, 63%, 35%) |
| HSV | hsv(254, 77%, 56%) |
| CMYK | cmyk(58.7%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(23.67, 41.57, -56.26) |
| CIE-LCH | lch(23.67, 69.96, 306.46°) |
| OKLab | oklab(36.05% 0.0438 -0.162) |
| OKLCH | oklch(36.05% 0.168 285.1) |
| XYZ | xyz(7.3039, 4.0002, 26.3685) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.68
Indigo Blue
#3A18B1
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 5.10
Indigo
#4B0082
ΔE00 5.87
Cobalt Blue
#030AA7
ΔE00 5.99
Ultramarine
#2000B1
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3B218F #758F21
analogous
#213E8F #3B218F #72218F
triadic
#3B218F #8F3B21 #218F3B
tetradic
#3B218F #8F213E #758F21 #218F72
square
#3B218F #8F213E #758F21 #218F72
split-complementary
#3B218F #8F7221 #3E8F21
monochromatic
#120A2C #26165D #3B218F #502CC1 #7253D7
Accessibility & contrast
On white
11.67
#3B218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3B218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3B218F
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3B218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3B218F | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#0F4057
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3b218f; /* rgb */ color: rgb(59, 33, 143); /* oklch */ color: oklch(36.0% 0.168 285.1);
Tailwind
colors: {
custom: {
50: '#7b60b1',
500: '#3b218f',
950: '#000000',
},
}SCSS
$custom: #3b218f; $custom-light: #7b60b1; $custom-dark: #000000;
JSON
{
"hex": "#3b218f",
"rgb": {
"r": 59,
"g": 33,
"b": 143
},
"hsl": {
"h": 254.182,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.3605,
"c": 0.16786,
"h": 285.1
},
"luminance": 0.04001
}Semantic roles & 50–950 ramp
primary
#3B218F
secondary
#A2BB51
accent
#E642BF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980