#40298E#40298E
#40298E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.157 H 286.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).
Color values
| HEX | #40298E |
|---|---|
| RGB | rgb(64, 41, 142) |
| HSL | hsl(254, 55%, 36%) |
| HSV | hsv(254, 71%, 56%) |
| CMYK | cmyk(54.9%, 71.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.65, 37.65, -52.38) |
| CIE-LCH | lch(25.65, 64.51, 305.71°) |
| OKLab | oklab(37.54% 0.0449 -0.1505) |
| OKLCH | oklch(37.54% 0.157 286.6) |
| XYZ | xyz(7.7883, 4.6285, 26.0689) |
| Luminance | 0.0463 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.84
Indigo Blue
#3A18B1
ΔE00 5.91
Royal
#0C1793
ΔE00 6.23
Blueberry
#464196
ΔE00 6.76
Indigo (survey)
#380282
ΔE00 6.82
Indigo
#4B0082
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40298E #778E29
analogous
#29458E #40298E #72298E
triadic
#40298E #8E4029 #298E40
tetradic
#40298E #8E2945 #778E29 #298E72
square
#40298E #8E2945 #778E29 #298E72
split-complementary
#40298E #8E7229 #458E29
monochromatic
#150E2F #2B1B5F #40298E #5537BD #7A60D1
Accessibility & contrast
On white
10.90
#40298E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#40298E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #40298E
10.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40298E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##40298E | 1.00 | 10.90 | 1.93 | 10.90 |
| #FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#204358
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #40298e; /* rgb */ color: rgb(64, 41, 142); /* oklch */ color: oklch(37.5% 0.157 286.6);
Tailwind
colors: {
custom: {
50: '#7d65b0',
500: '#40298e',
950: '#000000',
},
}SCSS
$custom: #40298e; $custom-light: #7d65b0; $custom-dark: #000000;
JSON
{
"hex": "#40298e",
"rgb": {
"r": 64,
"g": 41,
"b": 142
},
"hsl": {
"h": 253.663,
"s": 55.191,
"l": 35.882
},
"oklch": {
"l": 0.37544,
"c": 0.1571,
"h": 286.6
},
"luminance": 0.04629
}Semantic roles & 50–950 ramp
primary
#40298E
secondary
#A2B75C
accent
#DF49BD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80