#3F237C#3F237C
#3F237C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.142 H 291.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #3F237C |
|---|---|
| RGB | rgb(63, 35, 124) |
| HSL | hsl(259, 56%, 31%) |
| HSV | hsv(259, 72%, 49%) |
| CMYK | cmyk(49.2%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(22.70, 35.40, -45.91) |
| CIE-LCH | lch(22.70, 57.98, 307.64°) |
| OKLab | oklab(34.92% 0.0526 -0.1316) |
| OKLCH | oklch(34.92% 0.142 291.8) |
| XYZ | xyz(6.2880, 3.7138, 19.4504) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.68
Indigo
#4B0082
ΔE00 5.76
Midnight Blue
#191970
ΔE00 5.86
Royal Purple (survey)
#4B006E
ΔE00 6.75
Royal
#0C1793
ΔE00 7.03
Darkslateblue
#483D8B
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F237C #607C23
analogous
#23337C #3F237C #6B237C
triadic
#3F237C #7C3F23 #237C3F
tetradic
#3F237C #7C2333 #607C23 #237C6B
square
#3F237C #7C2333 #607C23 #237C6B
split-complementary
#3F237C #7C6B23 #337C23
monochromatic
#0F081D #27164C #3F237C #5730AC #754DCD
Accessibility & contrast
On white
12.05
#3F237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3F237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F237C
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F237C | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#2C394C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f237c; /* rgb */ color: rgb(63, 35, 124); /* oklch */ color: oklch(34.9% 0.142 291.8);
Tailwind
colors: {
custom: {
50: '#7a60a3',
500: '#3f237c',
950: '#000000',
},
}SCSS
$custom: #3f237c; $custom-light: #7a60a3; $custom-dark: #000000;
JSON
{
"hex": "#3f237c",
"rgb": {
"r": 63,
"g": 35,
"b": 124
},
"hsl": {
"h": 258.876,
"s": 55.975,
"l": 31.176
},
"oklch": {
"l": 0.34917,
"c": 0.14171,
"h": 291.8
},
"luminance": 0.03714
}Semantic roles & 50–950 ramp
primary
#3F237C
secondary
#90AF4C
accent
#DF49B0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F