#3F238C#3F238C
#3F238C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.162 H 287.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3F238C |
|---|---|
| RGB | rgb(63, 35, 140) |
| HSL | hsl(256, 60%, 34%) |
| HSV | hsv(256, 75%, 55%) |
| CMYK | cmyk(55%, 75%, 0%, 45.1%) |
| CIE-LAB | lab(24.17, 40.20, -53.57) |
| CIE-LCH | lch(24.17, 66.98, 306.89°) |
| OKLab | oklab(36.41% 0.0491 -0.154) |
| OKLCH | oklch(36.41% 0.162 287.7) |
| XYZ | xyz(7.3832, 4.1519, 25.2182) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.39
Royal
#0C1793
ΔE00 5.53
Indigo Blue
#3A18B1
ΔE00 5.55
Indigo
#4B0082
ΔE00 5.76
Midnight Blue
#191970
ΔE00 6.62
Cobalt Blue
#030AA7
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F238C #708C23
analogous
#233C8C #3F238C #74238C
triadic
#3F238C #8C3F23 #238C3F
tetradic
#3F238C #8C233C #708C23 #238C74
square
#3F238C #8C233C #708C23 #238C74
split-complementary
#3F238C #8C7423 #3C8C23
monochromatic
#130B2A #29175B #3F238C #552FBD #7755D4
Accessibility & contrast
On white
11.47
#3F238C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#3F238C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F238C
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F238C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F238C | 1.00 | 11.47 | 1.83 | 11.47 |
| #FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#203F55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f238c; /* rgb */ color: rgb(63, 35, 140); /* oklch */ color: oklch(36.4% 0.162 287.7);
Tailwind
colors: {
custom: {
50: '#7d61af',
500: '#3f238c',
950: '#000000',
},
}SCSS
$custom: #3f238c; $custom-light: #7d61af; $custom-dark: #000000;
JSON
{
"hex": "#3f238c",
"rgb": {
"r": 63,
"g": 35,
"b": 140
},
"hsl": {
"h": 256,
"s": 60,
"l": 34.314
},
"oklch": {
"l": 0.36409,
"c": 0.16169,
"h": 287.7
},
"luminance": 0.04152
}Semantic roles & 50–950 ramp
primary
#3F238C
secondary
#9DB852
accent
#E345B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F