#3F226F#3F226F
#3F226F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.126 H 296.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3F226F |
|---|---|
| RGB | rgb(63, 34, 111) |
| HSL | hsl(263, 53%, 28%) |
| HSV | hsv(263, 69%, 44%) |
| CMYK | cmyk(43.2%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.39, 32.13, -39.73) |
| CIE-LCH | lch(21.39, 51.09, 308.96°) |
| OKLab | oklab(33.63% 0.0558 -0.1134) |
| OKLCH | oklch(33.63% 0.126 296.2) |
| XYZ | xyz(5.4904, 3.3484, 15.3929) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 6.21
Midnight Blue
#191970
ΔE00 6.35
Indigo
#4B0082
ΔE00 6.56
Indigo (survey)
#380282
ΔE00 6.80
Dark Indigo
#1F0954
ΔE00 7.56
Darkslateblue
#483D8B
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F226F #526F22
analogous
#222C6F #3F226F #65226F
triadic
#3F226F #6F3F22 #226F3F
tetradic
#3F226F #6F222C #526F22 #226F65
square
#3F226F #6F222C #526F22 #226F65
split-complementary
#3F226F #6F6522 #2C6F22
monochromatic
#0D0717 #241440 #3F226F #5A309E #7645C6
Accessibility & contrast
On white
12.58
#3F226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#3F226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F226F
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F226F | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#333445
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f226f; /* rgb */ color: rgb(63, 34, 111); /* oklch */ color: oklch(33.6% 0.126 296.2);
Tailwind
colors: {
custom: {
50: '#795f99',
500: '#3f226f',
950: '#000000',
},
}SCSS
$custom: #3f226f; $custom-light: #795f99; $custom-dark: #000000;
JSON
{
"hex": "#3f226f",
"rgb": {
"r": 63,
"g": 34,
"b": 111
},
"hsl": {
"h": 262.597,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.3363,
"c": 0.12639,
"h": 296.2
},
"luminance": 0.03349
}Semantic roles & 50–950 ramp
primary
#3F226F
secondary
#81A24A
accent
#DD4BA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E