#40147B#40147B
#40147B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.157 H 295.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #40147B |
|---|---|
| RGB | rgb(64, 20, 123) |
| HSL | hsl(266, 72%, 28%) |
| HSV | hsv(266, 84%, 48%) |
| CMYK | cmyk(48%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(20.12, 42.70, -49.49) |
| CIE-LCH | lch(20.12, 65.36, 310.79°) |
| OKLab | oklab(33.1% 0.068 -0.1419) |
| OKLCH | oklch(33.1% 0.157 295.6) |
| XYZ | xyz(5.9387, 3.0202, 19.0051) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 2.94
Indigo (survey)
#380282
ΔE00 2.97
Royal Purple (survey)
#4B006E
ΔE00 4.26
Midnight Blue
#191970
ΔE00 6.27
Royal
#0C1793
ΔE00 6.85
Navy
#000080
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40147B #4F7B14
analogous
#141B7B #40147B #73147B
triadic
#40147B #7B4014 #147B40
tetradic
#40147B #7B141B #4F7B14 #147B73
square
#40147B #7B141B #4F7B14 #147B73
split-complementary
#40147B #7B7314 #1B7B14
monochromatic
#0E041A #250B46 #40147B #5B1DB0 #782DDD
Accessibility & contrast
On white
13.09
#40147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#40147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40147B
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40147B | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2F3248
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #40147b; /* rgb */ color: rgb(64, 20, 123); /* oklch */ color: oklch(33.1% 0.157 295.6);
Tailwind
colors: {
custom: {
50: '#7c58a2',
500: '#40147b',
950: '#000000',
},
}SCSS
$custom: #40147b; $custom-light: #7c58a2; $custom-dark: #000000;
JSON
{
"hex": "#40147b",
"rgb": {
"r": 64,
"g": 20,
"b": 123
},
"hsl": {
"h": 265.631,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.33103,
"c": 0.15736,
"h": 295.6
},
"luminance": 0.0302
}Semantic roles & 50–950 ramp
primary
#40147B
secondary
#7EB13A
accent
#EF39A1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F