#3F227C#3F227C
#3F227C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.143 H 292.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3F227C |
|---|---|
| RGB | rgb(63, 34, 124) |
| HSL | hsl(259, 57%, 31%) |
| HSV | hsv(259, 73%, 49%) |
| CMYK | cmyk(49.2%, 72.6%, 0%, 51.4%) |
| CIE-LAB | lab(22.50, 35.97, -46.24) |
| CIE-LCH | lch(22.50, 58.58, 307.87°) |
| OKLab | oklab(34.77% 0.0537 -0.1325) |
| OKLCH | oklch(34.77% 0.143 292) |
| XYZ | xyz(6.2590, 3.6558, 19.4407) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.44
Indigo
#4B0082
ΔE00 5.53
Midnight Blue
#191970
ΔE00 5.82
Royal Purple (survey)
#4B006E
ΔE00 6.54
Royal
#0C1793
ΔE00 6.95
Darkslateblue
#483D8B
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F227C #5F7C22
analogous
#22327C #3F227C #6C227C
triadic
#3F227C #7C3F22 #227C3F
tetradic
#3F227C #7C2232 #5F7C22 #227C6C
square
#3F227C #7C2232 #5F7C22 #227C6C
split-complementary
#3F227C #7C6C22 #327C22
monochromatic
#0E081C #27154C #3F227C #572FAC #754BCE
Accessibility & contrast
On white
12.13
#3F227C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3F227C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F227C
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F227C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F227C | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#2C394C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f227c; /* rgb */ color: rgb(63, 34, 124); /* oklch */ color: oklch(34.8% 0.143 292.0);
Tailwind
colors: {
custom: {
50: '#7a60a3',
500: '#3f227c',
950: '#000000',
},
}SCSS
$custom: #3f227c; $custom-light: #7a60a3; $custom-dark: #000000;
JSON
{
"hex": "#3f227c",
"rgb": {
"r": 63,
"g": 34,
"b": 124
},
"hsl": {
"h": 259.333,
"s": 56.962,
"l": 30.98
},
"oklch": {
"l": 0.34773,
"c": 0.14299,
"h": 292
},
"luminance": 0.03656
}Semantic roles & 50–950 ramp
primary
#3F227C
secondary
#8FAF4B
accent
#E048AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F