#3F257E#3F257E
#3F257E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.142 H 290.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #3F257E |
|---|---|
| RGB | rgb(63, 37, 126) |
| HSL | hsl(258, 55%, 32%) |
| HSV | hsv(258, 71%, 49%) |
| CMYK | cmyk(50%, 70.6%, 0%, 50.6%) |
| CIE-LAB | lab(23.29, 34.86, -46.22) |
| CIE-LCH | lch(23.29, 57.89, 307.03°) |
| OKLab | oklab(35.39% 0.0502 -0.1325) |
| OKLCH | oklch(35.39% 0.142 290.7) |
| XYZ | xyz(6.4763, 3.8860, 20.1435) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.99
Indigo (survey)
#380282
ΔE00 6.06
Indigo
#4B0082
ΔE00 6.17
Darkslateblue
#483D8B
ΔE00 6.72
Royal
#0C1793
ΔE00 6.98
Royal Purple (survey)
#4B006E
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F257E #647E25
analogous
#25387E #3F257E #6C257E
triadic
#3F257E #7E3F25 #257E3F
tetradic
#3F257E #7E2538 #647E25 #257E6C
square
#3F257E #7E2538 #647E25 #257E6C
split-complementary
#3F257E #7E6C25 #387E25
monochromatic
#10091F #27174F #3F257E #5733AD #7551CC
Accessibility & contrast
On white
11.82
#3F257E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3F257E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F257E
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F257E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F257E | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#2B3B4E
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3f257e; /* rgb */ color: rgb(63, 37, 126); /* oklch */ color: oklch(35.4% 0.142 290.7);
Tailwind
colors: {
custom: {
50: '#7a61a4',
500: '#3f257e',
950: '#000000',
},
}SCSS
$custom: #3f257e; $custom-light: #7a61a4; $custom-dark: #000000;
JSON
{
"hex": "#3f257e",
"rgb": {
"r": 63,
"g": 37,
"b": 126
},
"hsl": {
"h": 257.528,
"s": 54.601,
"l": 31.961
},
"oklch": {
"l": 0.35393,
"c": 0.14167,
"h": 290.7
},
"luminance": 0.03886
}Semantic roles & 50–950 ramp
primary
#3F257E
secondary
#94B04F
accent
#DE4AB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F