#3F237E#3F237E
#3F237E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.144 H 291.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).
Color values
| HEX | #3F237E |
|---|---|
| RGB | rgb(63, 35, 126) |
| HSL | hsl(258, 57%, 32%) |
| HSV | hsv(258, 72%, 49%) |
| CMYK | cmyk(50%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(22.88, 36.00, -46.89) |
| CIE-LCH | lch(22.88, 59.12, 307.52°) |
| OKLab | oklab(35.1% 0.0522 -0.1344) |
| OKLCH | oklch(35.1% 0.144 291.2) |
| XYZ | xyz(6.4158, 3.7649, 20.1233) |
| Luminance | 0.0377 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.56
Indigo
#4B0082
ΔE00 5.69
Midnight Blue
#191970
ΔE00 5.88
Royal
#0C1793
ΔE00 6.78
Royal Purple (survey)
#4B006E
ΔE00 6.86
Darkslateblue
#483D8B
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F237E #627E23
analogous
#23347E #3F237E #6D237E
triadic
#3F237E #7E3F23 #237E3F
tetradic
#3F237E #7E2334 #627E23 #237E6D
square
#3F237E #7E2334 #627E23 #237E6D
split-complementary
#3F237E #7E6D23 #347E23
monochromatic
#0F081E #27164E #3F237E #5730AE #754ECE
Accessibility & contrast
On white
11.98
#3F237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#3F237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F237E
11.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F237E | 1.00 | 11.98 | 1.75 | 11.98 |
| #FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#2B3A4E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3f237e; /* rgb */ color: rgb(63, 35, 126); /* oklch */ color: oklch(35.1% 0.144 291.2);
Tailwind
colors: {
custom: {
50: '#7b60a4',
500: '#3f237e',
950: '#000000',
},
}SCSS
$custom: #3f237e; $custom-light: #7b60a4; $custom-dark: #000000;
JSON
{
"hex": "#3f237e",
"rgb": {
"r": 63,
"g": 35,
"b": 126
},
"hsl": {
"h": 258.462,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.35098,
"c": 0.14424,
"h": 291.2
},
"luminance": 0.03765
}Semantic roles & 50–950 ramp
primary
#3F237E
secondary
#92B04C
accent
#E048B1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F