#40188F#40188F
#40188F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.176 H 289.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #40188F |
|---|---|
| RGB | rgb(64, 24, 143) |
| HSL | hsl(260, 71%, 33%) |
| HSV | hsv(260, 83%, 56%) |
| CMYK | cmyk(55.2%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.74, 46.48, -57.77) |
| CIE-LCH | lch(22.74, 74.15, 308.82°) |
| OKLab | oklab(35.53% 0.0581 -0.1662) |
| OKLCH | oklch(35.53% 0.176 289.3) |
| XYZ | xyz(7.3975, 3.7261, 26.3107) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.61
Indigo
#4B0082
ΔE00 4.09
Indigo Blue
#3A18B1
ΔE00 4.82
Royal
#0C1793
ΔE00 5.13
Cobalt Blue
#030AA7
ΔE00 5.77
Ultramarine
#2000B1
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40188F #678F18
analogous
#182C8F #40188F #7B188F
triadic
#40188F #8F4018 #188F40
tetradic
#40188F #8F182C #678F18 #188F7B
square
#40188F #8F182C #678F18 #188F7B
split-complementary
#40188F #8F7B18 #2C8F18
monochromatic
#110626 #290F5B #40188F #5721C3 #7742DF
Accessibility & contrast
On white
12.03
#40188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#40188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40188F
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40188F | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#203C55
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #40188f; /* rgb */ color: rgb(64, 24, 143); /* oklch */ color: oklch(35.5% 0.176 289.3);
Tailwind
colors: {
custom: {
50: '#7f5bb1',
500: '#40188f',
950: '#000000',
},
}SCSS
$custom: #40188f; $custom-light: #7f5bb1; $custom-dark: #000000;
JSON
{
"hex": "#40188f",
"rgb": {
"r": 64,
"g": 24,
"b": 143
},
"hsl": {
"h": 260.168,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.35532,
"c": 0.17605,
"h": 289.3
},
"luminance": 0.03726
}Semantic roles & 50–950 ramp
primary
#40188F
secondary
#96C043
accent
#EE3AB1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980