#3F236A#3F236A
#3F236A is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.4% C 0.118 H 297.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #3F236A |
|---|---|
| RGB | rgb(63, 35, 106) |
| HSL | hsl(264, 50%, 28%) |
| HSV | hsv(264, 67%, 42%) |
| CMYK | cmyk(40.6%, 67%, 0%, 58.4%) |
| CIE-LAB | lab(21.21, 30.07, -36.78) |
| CIE-LCH | lch(21.21, 47.51, 309.27°) |
| OKLab | oklab(33.37% 0.0552 -0.1047) |
| OKLCH | oklch(33.37% 0.118 297.8) |
| XYZ | xyz(5.2518, 3.2994, 13.9930) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 6.62
Midnight Blue
#191970
ΔE00 6.95
Indigo
#4B0082
ΔE00 7.43
Dark Indigo
#1F0954
ΔE00 7.57
Indigo (survey)
#380282
ΔE00 7.78
Darkslateblue
#483D8B
ΔE00 8.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F236A #4E6A23
analogous
#232A6A #3F236A #63236A
triadic
#3F236A #6A3F23 #236A3F
tetradic
#3F236A #6A232A #4E6A23 #236A63
square
#3F236A #6A232A #4E6A23 #236A63
split-complementary
#3F236A #6A6323 #2A6A23
monochromatic
#0E0817 #24143C #3F236A #5A3298 #7746C2
Accessibility & contrast
On white
12.65
#3F236A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3F236A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F236A
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F236A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F236A | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#353343
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f236a; /* rgb */ color: rgb(63, 35, 106); /* oklch */ color: oklch(33.4% 0.118 297.8);
Tailwind
colors: {
custom: {
50: '#786095',
500: '#3f236a',
950: '#000000',
},
}SCSS
$custom: #3f236a; $custom-light: #786095; $custom-dark: #000000;
JSON
{
"hex": "#3f236a",
"rgb": {
"r": 63,
"g": 35,
"b": 106
},
"hsl": {
"h": 263.662,
"s": 50.355,
"l": 27.647
},
"oklch": {
"l": 0.33371,
"c": 0.11838,
"h": 297.8
},
"luminance": 0.03299
}Semantic roles & 50–950 ramp
primary
#3F236A
secondary
#7D9D4B
accent
#DA4EA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E