#3F188D#3F188D
#3F188D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.174 H 289.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3F188D |
|---|---|
| RGB | rgb(63, 24, 141) |
| HSL | hsl(260, 71%, 32%) |
| HSV | hsv(260, 83%, 55%) |
| CMYK | cmyk(55.3%, 83%, 0%, 44.7%) |
| CIE-LAB | lab(22.42, 45.80, -57.07) |
| CIE-LCH | lch(22.42, 73.17, 308.75°) |
| OKLab | oklab(35.22% 0.0571 -0.1642) |
| OKLCH | oklch(35.22% 0.174 289.2) |
| XYZ | xyz(7.1828, 3.6328, 25.5169) |
| Luminance | 0.0363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.43
Indigo
#4B0082
ΔE00 4.02
Royal
#0C1793
ΔE00 5.06
Indigo Blue
#3A18B1
ΔE00 5.09
Cobalt Blue
#030AA7
ΔE00 5.85
Ultramarine
#2000B1
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F188D #668D18
analogous
#182C8D #3F188D #7A188D
triadic
#3F188D #8D3F18 #188D3F
tetradic
#3F188D #8D182C #668D18 #188D7A
square
#3F188D #8D182C #668D18 #188D7A
split-complementary
#3F188D #8D7A18 #2C8D18
monochromatic
#100624 #280F59 #3F188D #5621C1 #7541DF
Accessibility & contrast
On white
12.16
#3F188D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3F188D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F188D
12.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F188D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F188D | 1.00 | 12.16 | 1.73 | 12.16 |
| #FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#203B53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f188d; /* rgb */ color: rgb(63, 24, 141); /* oklch */ color: oklch(35.2% 0.174 289.2);
Tailwind
colors: {
custom: {
50: '#7e5baf',
500: '#3f188d',
950: '#000000',
},
}SCSS
$custom: #3f188d; $custom-light: #7e5baf; $custom-dark: #000000;
JSON
{
"hex": "#3f188d",
"rgb": {
"r": 63,
"g": 24,
"b": 141
},
"hsl": {
"h": 260,
"s": 70.909,
"l": 32.353
},
"oklch": {
"l": 0.35217,
"c": 0.17383,
"h": 289.2
},
"luminance": 0.03633
}Semantic roles & 50–950 ramp
primary
#3F188D
secondary
#95BF42
accent
#EE3AB2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980