#3F267C#3F267C
#3F267C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.138 H 291.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).
Color values
| HEX | #3F267C |
|---|---|
| RGB | rgb(63, 38, 124) |
| HSL | hsl(257, 53%, 32%) |
| HSV | hsv(257, 69%, 49%) |
| CMYK | cmyk(49.2%, 69.4%, 0%, 51.4%) |
| CIE-LAB | lab(23.33, 33.67, -44.88) |
| CIE-LCH | lch(23.33, 56.11, 306.88°) |
| OKLab | oklab(35.37% 0.0495 -0.1286) |
| OKLCH | oklch(35.37% 0.138 291) |
| XYZ | xyz(6.3801, 3.8980, 19.4811) |
| Luminance | 0.0390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.05
Indigo (survey)
#380282
ΔE00 6.43
Indigo
#4B0082
ΔE00 6.51
Darkslateblue
#483D8B
ΔE00 6.54
Royal
#0C1793
ΔE00 7.34
Royal Purple (survey)
#4B006E
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F267C #637C26
analogous
#26387C #3F267C #6A267C
triadic
#3F267C #7C3F26 #267C3F
tetradic
#3F267C #7C2638 #637C26 #267C6A
square
#3F267C #7C2638 #637C26 #267C6A
split-complementary
#3F267C #7C6A26 #387C26
monochromatic
#0F091E #27184D #3F267C #5734AB #7552CA
Accessibility & contrast
On white
11.80
#3F267C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#3F267C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F267C
11.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F267C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F267C | 1.00 | 11.80 | 1.78 | 11.80 |
| #FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#2C3B4D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3f267c; /* rgb */ color: rgb(63, 38, 124); /* oklch */ color: oklch(35.4% 0.138 291.0);
Tailwind
colors: {
custom: {
50: '#7a62a3',
500: '#3f267c',
950: '#000000',
},
}SCSS
$custom: #3f267c; $custom-light: #7a62a3; $custom-dark: #000000;
JSON
{
"hex": "#3f267c",
"rgb": {
"r": 63,
"g": 38,
"b": 124
},
"hsl": {
"h": 257.442,
"s": 53.086,
"l": 31.765
},
"oklch": {
"l": 0.35368,
"c": 0.13774,
"h": 291
},
"luminance": 0.03898
}Semantic roles & 50–950 ramp
primary
#3F267C
secondary
#93AE50
accent
#DC4BB2
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F