#3F238E#3F238E
#3F238E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.164 H 287.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3F238E |
|---|---|
| RGB | rgb(63, 35, 142) |
| HSL | hsl(256, 60%, 35%) |
| HSV | hsv(256, 75%, 56%) |
| CMYK | cmyk(55.6%, 75.4%, 0%, 44.3%) |
| CIE-LAB | lab(24.36, 40.81, -54.50) |
| CIE-LCH | lch(24.36, 68.08, 306.82°) |
| OKLab | oklab(36.6% 0.0487 -0.1568) |
| OKLCH | oklch(36.6% 0.164 287.2) |
| XYZ | xyz(7.5320, 4.2114, 26.0019) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.25
Royal
#0C1793
ΔE00 5.43
Indigo (survey)
#380282
ΔE00 5.45
Indigo
#4B0082
ΔE00 5.85
Cobalt Blue
#030AA7
ΔE00 6.70
Midnight Blue
#191970
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F238E #728E23
analogous
#233D8E #3F238E #75238E
triadic
#3F238E #8E3F23 #238E3F
tetradic
#3F238E #8E233D #728E23 #238E75
square
#3F238E #8E233D #728E23 #238E75
split-complementary
#3F238E #8E7523 #3D8E23
monochromatic
#130B2C #29175D #3F238E #552FBF #7756D5
Accessibility & contrast
On white
11.40
#3F238E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3F238E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F238E
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F238E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F238E | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#1E4056
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f238e; /* rgb */ color: rgb(63, 35, 142); /* oklch */ color: oklch(36.6% 0.164 287.2);
Tailwind
colors: {
custom: {
50: '#7d61b0',
500: '#3f238e',
950: '#000000',
},
}SCSS
$custom: #3f238e; $custom-light: #7d61b0; $custom-dark: #000000;
JSON
{
"hex": "#3f238e",
"rgb": {
"r": 63,
"g": 35,
"b": 142
},
"hsl": {
"h": 255.701,
"s": 60.452,
"l": 34.706
},
"oklch": {
"l": 0.36603,
"c": 0.16414,
"h": 287.2
},
"luminance": 0.04212
}Semantic roles & 50–950 ramp
primary
#3F238E
secondary
#9FB953
accent
#E444BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980