#3F228E#3F228E
#3F228E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.165 H 287.4°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3F228E |
|---|---|
| RGB | rgb(63, 34, 142) |
| HSL | hsl(256, 61%, 35%) |
| HSV | hsv(256, 76%, 56%) |
| CMYK | cmyk(55.6%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(24.17, 41.33, -54.81) |
| CIE-LCH | lch(24.17, 68.64, 307.02°) |
| OKLab | oklab(36.47% 0.0495 -0.1577) |
| OKLCH | oklch(36.47% 0.165 287.4) |
| XYZ | xyz(7.5030, 4.1534, 25.9923) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 5.24
Royal
#0C1793
ΔE00 5.35
Indigo
#4B0082
ΔE00 5.65
Cobalt Blue
#030AA7
ΔE00 6.58
Midnight Blue
#191970
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F228E #718E22
analogous
#223B8E #3F228E #75228E
triadic
#3F228E #8E3F22 #228E3F
tetradic
#3F228E #8E223B #718E22 #228E75
square
#3F228E #8E223B #718E22 #228E75
split-complementary
#3F228E #8E7522 #3B8E22
monochromatic
#130A2B #29165D #3F228E #552EBF #7754D6
Accessibility & contrast
On white
11.47
#3F228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#3F228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F228E
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F228E | 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)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#1E4056
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f228e; /* rgb */ color: rgb(63, 34, 142); /* oklch */ color: oklch(36.5% 0.165 287.4);
Tailwind
colors: {
custom: {
50: '#7d60b0',
500: '#3f228e',
950: '#000000',
},
}SCSS
$custom: #3f228e; $custom-light: #7d60b0; $custom-dark: #000000;
JSON
{
"hex": "#3f228e",
"rgb": {
"r": 63,
"g": 34,
"b": 142
},
"hsl": {
"h": 256.111,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.36471,
"c": 0.16523,
"h": 287.4
},
"luminance": 0.04154
}Semantic roles & 50–950 ramp
primary
#3F228E
secondary
#9EBA52
accent
#E443B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980