#3F236F#3F236F
#3F236F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.125 H 295.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #3F236F |
|---|---|
| RGB | rgb(63, 35, 111) |
| HSL | hsl(262, 52%, 29%) |
| HSV | hsv(262, 68%, 44%) |
| CMYK | cmyk(43.2%, 68.5%, 0%, 56.5%) |
| CIE-LAB | lab(21.60, 31.54, -39.38) |
| CIE-LCH | lch(21.60, 50.45, 308.69°) |
| OKLab | oklab(33.78% 0.0547 -0.1124) |
| OKLCH | oklch(33.78% 0.125 295.9) |
| XYZ | xyz(5.5194, 3.4064, 15.4025) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.41
Royal Purple (survey)
#4B006E
ΔE00 6.46
Indigo
#4B0082
ΔE00 6.79
Indigo (survey)
#380282
ΔE00 7.03
Dark Indigo
#1F0954
ΔE00 7.71
Darkslateblue
#483D8B
ΔE00 8.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F236F #536F23
analogous
#232D6F #3F236F #65236F
triadic
#3F236F #6F3F23 #236F3F
tetradic
#3F236F #6F232D #536F23 #236F65
square
#3F236F #6F232D #536F23 #236F65
split-complementary
#3F236F #6F6523 #2D6F23
monochromatic
#0D0717 #251440 #3F236F #59329E #7647C5
Accessibility & contrast
On white
12.49
#3F236F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#3F236F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F236F
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F236F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F236F | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#333545
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #3f236f; /* rgb */ color: rgb(63, 35, 111); /* oklch */ color: oklch(33.8% 0.125 295.9);
Tailwind
colors: {
custom: {
50: '#786099',
500: '#3f236f',
950: '#000000',
},
}SCSS
$custom: #3f236f; $custom-light: #786099; $custom-dark: #000000;
JSON
{
"hex": "#3f236f",
"rgb": {
"r": 63,
"g": 35,
"b": 111
},
"hsl": {
"h": 262.105,
"s": 52.055,
"l": 28.627
},
"oklch": {
"l": 0.33785,
"c": 0.12495,
"h": 295.9
},
"luminance": 0.03407
}Semantic roles & 50–950 ramp
primary
#3F236F
secondary
#82A24C
accent
#DB4CA7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050E
muted
#7B797E