#3F187C#3F187C
#3F187C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.155 H 294.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #3F187C |
|---|---|
| RGB | rgb(63, 24, 124) |
| HSL | hsl(263, 68%, 29%) |
| HSV | hsv(263, 81%, 49%) |
| CMYK | cmyk(49.2%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(20.69, 41.08, -49.20) |
| CIE-LCH | lch(20.69, 64.09, 309.86°) |
| OKLab | oklab(33.5% 0.0629 -0.1411) |
| OKLCH | oklch(33.5% 0.155 294) |
| XYZ | xyz(6.0136, 3.1651, 19.3589) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.41
Indigo
#4B0082
ΔE00 3.57
Royal Purple (survey)
#4B006E
ΔE00 4.91
Midnight Blue
#191970
ΔE00 5.92
Royal
#0C1793
ΔE00 6.55
Darkblue
#00008B
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F187C #557C18
analogous
#18237C #3F187C #71187C
triadic
#3F187C #7C3F18 #187C3F
tetradic
#3F187C #7C1823 #557C18 #187C71
square
#3F187C #7C1823 #557C18 #187C71
split-complementary
#3F187C #7C7118 #237C18
monochromatic
#0D051A #250E49 #3F187C #5922AF #7536D8
Accessibility & contrast
On white
12.86
#3F187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3F187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F187C
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F187C | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2C344A
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3f187c; /* rgb */ color: rgb(63, 24, 124); /* oklch */ color: oklch(33.5% 0.155 294.0);
Tailwind
colors: {
custom: {
50: '#7b5aa3',
500: '#3f187c',
950: '#000000',
},
}SCSS
$custom: #3f187c; $custom-light: #7b5aa3; $custom-dark: #000000;
JSON
{
"hex": "#3f187c",
"rgb": {
"r": 63,
"g": 24,
"b": 124
},
"hsl": {
"h": 263.4,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.33499,
"c": 0.15451,
"h": 294
},
"luminance": 0.03165
}Semantic roles & 50–950 ramp
primary
#3F187C
secondary
#84B13F
accent
#EA3DA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F