#3F127E#3F127E
#3F127E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.162 H 294.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3F127E |
|---|---|
| RGB | rgb(63, 18, 126) |
| HSL | hsl(265, 75%, 28%) |
| HSV | hsv(265, 86%, 49%) |
| CMYK | cmyk(50%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(20.03, 44.15, -51.57) |
| CIE-LCH | lch(20.03, 67.88, 310.57°) |
| OKLab | oklab(33.1% 0.0666 -0.148) |
| OKLCH | oklch(33.1% 0.162 294.2) |
| XYZ | xyz(6.0311, 2.9955, 19.9950) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.39
Indigo
#4B0082
ΔE00 2.73
Royal Purple (survey)
#4B006E
ΔE00 4.56
Midnight Blue
#191970
ΔE00 6.26
Royal
#0C1793
ΔE00 6.38
Darkblue
#00008B
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F127E #517E12
analogous
#121B7E #3F127E #75127E
triadic
#3F127E #7E3F12 #127E3F
tetradic
#3F127E #7E121B #517E12 #127E75
square
#3F127E #7E121B #517E12 #127E75
split-complementary
#3F127E #7E7512 #1B7E12
monochromatic
#0D041B #240A48 #3F127E #5A1AB4 #762AE1
Accessibility & contrast
On white
13.13
#3F127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3F127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F127E
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F127E | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#2B334A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3f127e; /* rgb */ color: rgb(63, 18, 126); /* oklch */ color: oklch(33.1% 0.162 294.2);
Tailwind
colors: {
custom: {
50: '#7c57a4',
500: '#3f127e',
950: '#000000',
},
}SCSS
$custom: #3f127e; $custom-light: #7c57a4; $custom-dark: #000000;
JSON
{
"hex": "#3f127e",
"rgb": {
"r": 63,
"g": 18,
"b": 126
},
"hsl": {
"h": 265,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.33098,
"c": 0.16233,
"h": 294.2
},
"luminance": 0.02996
}Semantic roles & 50–950 ramp
primary
#3F127E
secondary
#80B438
accent
#F236A4
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A030F
muted
#7C787F