#40198E#40198E
#40198E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.174 H 289.4°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #40198E |
|---|---|
| RGB | rgb(64, 25, 142) |
| HSL | hsl(260, 70%, 33%) |
| HSV | hsv(260, 82%, 56%) |
| CMYK | cmyk(54.9%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(22.79, 45.77, -57.08) |
| CIE-LCH | lch(22.79, 73.17, 308.73°) |
| OKLab | oklab(35.53% 0.0578 -0.1642) |
| OKLCH | oklch(35.53% 0.174 289.4) |
| XYZ | xyz(7.3430, 3.7379, 25.9205) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.68
Indigo
#4B0082
ΔE00 4.13
Indigo Blue
#3A18B1
ΔE00 4.96
Royal
#0C1793
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 5.92
Ultramarine
#2000B1
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40198E #678E19
analogous
#192C8E #40198E #7A198E
triadic
#40198E #8E4019 #198E40
tetradic
#40198E #8E192C #678E19 #198E7A
square
#40198E #8E192C #678E19 #198E7A
split-complementary
#40198E #8E7A19 #2C8E19
monochromatic
#110726 #29105A #40198E #5722C2 #7743DE
Accessibility & contrast
On white
12.02
#40198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#40198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40198E
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40198E | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#213C54
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #40198e; /* rgb */ color: rgb(64, 25, 142); /* oklch */ color: oklch(35.5% 0.174 289.4);
Tailwind
colors: {
custom: {
50: '#7f5cb0',
500: '#40198e',
950: '#000000',
},
}SCSS
$custom: #40198e; $custom-light: #7f5cb0; $custom-dark: #000000;
JSON
{
"hex": "#40198e",
"rgb": {
"r": 64,
"g": 25,
"b": 142
},
"hsl": {
"h": 260,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.35529,
"c": 0.17405,
"h": 289.4
},
"luminance": 0.03738
}Semantic roles & 50–950 ramp
primary
#40198E
secondary
#96BF44
accent
#ED3BB2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980