#3F238D#3F238D
#3F238D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.163 H 287.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #3F238D |
|---|---|
| RGB | rgb(63, 35, 141) |
| HSL | hsl(256, 60%, 35%) |
| HSV | hsv(256, 75%, 55%) |
| CMYK | cmyk(55.3%, 75.2%, 0%, 44.7%) |
| CIE-LAB | lab(24.26, 40.50, -54.04) |
| CIE-LCH | lch(24.26, 67.53, 306.86°) |
| OKLab | oklab(36.51% 0.0489 -0.1554) |
| OKLCH | oklch(36.51% 0.163 287.5) |
| XYZ | xyz(7.4572, 4.1815, 25.6083) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.40
Indigo (survey)
#380282
ΔE00 5.42
Royal
#0C1793
ΔE00 5.47
Indigo
#4B0082
ΔE00 5.80
Midnight Blue
#191970
ΔE00 6.70
Cobalt Blue
#030AA7
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F238D #718D23
analogous
#233C8D #3F238D #74238D
triadic
#3F238D #8D3F23 #238D3F
tetradic
#3F238D #8D233C #718D23 #238D74
square
#3F238D #8D233C #718D23 #238D74
split-complementary
#3F238D #8D7423 #3C8D23
monochromatic
#130B2B #29175C #3F238D #552FBE #7755D5
Accessibility & contrast
On white
11.44
#3F238D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3F238D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F238D
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F238D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F238D | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#1F4056
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f238d; /* rgb */ color: rgb(63, 35, 141); /* oklch */ color: oklch(36.5% 0.163 287.5);
Tailwind
colors: {
custom: {
50: '#7d61af',
500: '#3f238d',
950: '#000000',
},
}SCSS
$custom: #3f238d; $custom-light: #7d61af; $custom-dark: #000000;
JSON
{
"hex": "#3f238d",
"rgb": {
"r": 63,
"g": 35,
"b": 141
},
"hsl": {
"h": 255.849,
"s": 60.227,
"l": 34.51
},
"oklch": {
"l": 0.36506,
"c": 0.16291,
"h": 287.5
},
"luminance": 0.04182
}Semantic roles & 50–950 ramp
primary
#3F238D
secondary
#9EB953
accent
#E344B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F