#3F277C#3F277C
#3F277C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.5% C 0.136 H 290.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3F277C |
|---|---|
| RGB | rgb(63, 39, 124) |
| HSL | hsl(257, 52%, 32%) |
| HSV | hsv(257, 69%, 49%) |
| CMYK | cmyk(49.2%, 68.5%, 0%, 51.4%) |
| CIE-LAB | lab(23.55, 33.08, -44.53) |
| CIE-LCH | lch(23.55, 55.48, 306.61°) |
| OKLab | oklab(35.52% 0.0484 -0.1275) |
| OKLCH | oklch(35.52% 0.136 290.8) |
| XYZ | xyz(6.4125, 3.9628, 19.4919) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.14
Darkslateblue
#483D8B
ΔE00 6.30
Indigo (survey)
#380282
ΔE00 6.70
Indigo
#4B0082
ΔE00 6.77
Royal
#0C1793
ΔE00 7.46
Royal Purple (survey)
#4B006E
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F277C #647C27
analogous
#273A7C #3F277C #6A277C
triadic
#3F277C #7C3F27 #277C3F
tetradic
#3F277C #7C273A #647C27 #277C6A
square
#3F277C #7C273A #647C27 #277C6A
split-complementary
#3F277C #7C6A27 #3A7C27
monochromatic
#100A1F #27184D #3F277C #5736AB #7554C9
Accessibility & contrast
On white
11.71
#3F277C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3F277C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F277C
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F277C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F277C | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#2C3C4E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3f277c; /* rgb */ color: rgb(63, 39, 124); /* oklch */ color: oklch(35.5% 0.136 290.8);
Tailwind
colors: {
custom: {
50: '#7a63a3',
500: '#3f277c',
950: '#000000',
},
}SCSS
$custom: #3f277c; $custom-light: #7a63a3; $custom-dark: #000000;
JSON
{
"hex": "#3f277c",
"rgb": {
"r": 63,
"g": 39,
"b": 124
},
"hsl": {
"h": 256.941,
"s": 52.147,
"l": 31.961
},
"oklch": {
"l": 0.35524,
"c": 0.13639,
"h": 290.8
},
"luminance": 0.03963
}Semantic roles & 50–950 ramp
primary
#3F277C
secondary
#94AE51
accent
#DC4CB3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F