#3F228F#3F228F
#3F228F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.166 H 287.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3F228F |
|---|---|
| RGB | rgb(63, 34, 143) |
| HSL | hsl(256, 62%, 35%) |
| HSV | hsv(256, 76%, 56%) |
| CMYK | cmyk(55.9%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(24.27, 41.63, -55.27) |
| CIE-LCH | lch(24.27, 69.19, 306.99°) |
| OKLab | oklab(36.57% 0.0492 -0.159) |
| OKLCH | oklch(36.57% 0.166 287.2) |
| XYZ | xyz(7.5784, 4.1836, 26.3895) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.29
Royal
#0C1793
ΔE00 5.30
Indigo
#4B0082
ΔE00 5.70
Cobalt Blue
#030AA7
ΔE00 6.49
Ultramarine
#2000B1
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F228F #728F22
analogous
#223C8F #3F228F #75228F
triadic
#3F228F #8F3F22 #228F3F
tetradic
#3F228F #8F223C #728F22 #228F75
square
#3F228F #8F223C #728F22 #228F75
split-complementary
#3F228F #8F7522 #3C8F22
monochromatic
#130A2C #29165E #3F228F #552EC0 #7755D7
Accessibility & contrast
On white
11.43
#3F228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3F228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F228F
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F228F | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#1D4057
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f228f; /* rgb */ color: rgb(63, 34, 143); /* oklch */ color: oklch(36.6% 0.166 287.2);
Tailwind
colors: {
custom: {
50: '#7d60b1',
500: '#3f228f',
950: '#000000',
},
}SCSS
$custom: #3f228f; $custom-light: #7d60b1; $custom-dark: #000000;
JSON
{
"hex": "#3f228f",
"rgb": {
"r": 63,
"g": 34,
"b": 143
},
"hsl": {
"h": 255.963,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.36569,
"c": 0.16644,
"h": 287.2
},
"luminance": 0.04184
}Semantic roles & 50–950 ramp
primary
#3F228F
secondary
#9FBA52
accent
#E543BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980