#3F228B#3F228B
#3F228B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.162 H 288.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3F228B |
|---|---|
| RGB | rgb(63, 34, 139) |
| HSL | hsl(257, 61%, 34%) |
| HSV | hsv(257, 76%, 55%) |
| CMYK | cmyk(54.7%, 75.5%, 0%, 45.5%) |
| CIE-LAB | lab(23.88, 40.44, -53.41) |
| CIE-LCH | lch(23.88, 66.99, 307.13°) |
| OKLab | oklab(36.18% 0.0502 -0.1536) |
| OKLCH | oklch(36.18% 0.162 288.1) |
| XYZ | xyz(7.2808, 4.0645, 24.8220) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.15
Royal
#0C1793
ΔE00 5.50
Indigo
#4B0082
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 5.64
Midnight Blue
#191970
ΔE00 6.51
Cobalt Blue
#030AA7
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F228B #6E8B22
analogous
#223A8B #3F228B #74228B
triadic
#3F228B #8B3F22 #228B3F
tetradic
#3F228B #8B223A #6E8B22 #228B74
square
#3F228B #8B223A #6E8B22 #228B74
split-complementary
#3F228B #8B7422 #3A8B22
monochromatic
#120A29 #29165A #3F228B #552EBC #7753D5
Accessibility & contrast
On white
11.58
#3F228B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3F228B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F228B
11.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F228B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F228B | 1.00 | 11.58 | 1.81 | 11.58 |
| #FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#213F55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3f228b; /* rgb */ color: rgb(63, 34, 139); /* oklch */ color: oklch(36.2% 0.162 288.1);
Tailwind
colors: {
custom: {
50: '#7d60ae',
500: '#3f228b',
950: '#000000',
},
}SCSS
$custom: #3f228b; $custom-light: #7d60ae; $custom-dark: #000000;
JSON
{
"hex": "#3f228b",
"rgb": {
"r": 63,
"g": 34,
"b": 139
},
"hsl": {
"h": 256.571,
"s": 60.694,
"l": 33.922
},
"oklch": {
"l": 0.3618,
"c": 0.16158,
"h": 288.1
},
"luminance": 0.04065
}Semantic roles & 50–950 ramp
primary
#3F228B
secondary
#9CB850
accent
#E444B8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F