#3F236B#3F236B
#3F236B is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.5% C 0.120 H 297.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #3F236B |
|---|---|
| RGB | rgb(63, 35, 107) |
| HSL | hsl(263, 51%, 28%) |
| HSV | hsv(263, 67%, 42%) |
| CMYK | cmyk(41.1%, 67.3%, 0%, 58%) |
| CIE-LAB | lab(21.28, 30.37, -37.30) |
| CIE-LCH | lch(21.28, 48.10, 309.15°) |
| OKLab | oklab(33.45% 0.0551 -0.1063) |
| OKLCH | oklch(33.45% 0.12 297.4) |
| XYZ | xyz(5.3041, 3.3203, 14.2685) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 6.57
Midnight Blue
#191970
ΔE00 6.83
Indigo
#4B0082
ΔE00 7.29
Dark Indigo
#1F0954
ΔE00 7.58
Indigo (survey)
#380282
ΔE00 7.62
Darkslateblue
#483D8B
ΔE00 8.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F236B #4F6B23
analogous
#232B6B #3F236B #63236B
triadic
#3F236B #6B3F23 #236B3F
tetradic
#3F236B #6B232B #4F6B23 #236B63
square
#3F236B #6B232B #4F6B23 #236B63
split-complementary
#3F236B #6B6323 #2B6B23
monochromatic
#0E0817 #24143D #3F236B #5A3299 #7646C2
Accessibility & contrast
On white
12.62
#3F236B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#3F236B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F236B
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F236B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F236B | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#343343
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #3f236b; /* rgb */ color: rgb(63, 35, 107); /* oklch */ color: oklch(33.5% 0.120 297.4);
Tailwind
colors: {
custom: {
50: '#786096',
500: '#3f236b',
950: '#000000',
},
}SCSS
$custom: #3f236b; $custom-light: #786096; $custom-dark: #000000;
JSON
{
"hex": "#3f236b",
"rgb": {
"r": 63,
"g": 35,
"b": 107
},
"hsl": {
"h": 263.333,
"s": 50.704,
"l": 27.843
},
"oklch": {
"l": 0.33453,
"c": 0.1197,
"h": 297.4
},
"luminance": 0.0332
}Semantic roles & 50–950 ramp
primary
#3F236B
secondary
#7E9E4B
accent
#DA4EA4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050D
muted
#7B797E