💡 Click on any color value below to copy it to clipboard
Running Number
4,195,662
HEX
#40054E
RGB
64, 5, 78
HSL
288°,88%,16%
HSV
288°,94%,31%
CMYK
18%,94%,0%,69%
Brightness
12%
Type
Dark
AA Normal Text: ≥ 4.5:1
AA Large Text: ≥ 3.0:1
AAA Normal Text: ≥ 7.0:1
AAA Large Text: ≥ 4.5:1
#40054E sits at 288° on the color wheel, placing it in the magenta family of the neutral half of the spectrum. With 88% saturation and 16% lightness, it reads as a fully saturated, deep tone — a weighted, dramatic presence with deep undertones. Its RGB mix of 64, 5, 78 produces a 15.56:1 contrast ratio against white, which clears WCAG AAA for body text in that pairing.
In RGB space #40054E is a clear variant of CSS indigo — about 53 units away from #4B0082. Designers reach for magenta hues at this saturation when the brief calls for bold, immediate signal, and at this lightness when they want weight, depth, and grounded contrast. On screen the balanced cast tends to pair best with either warm or cool accents depending on the surrounding palette.
See how this color appears in real UI elements
Button (filled)
Badge
Progress Bar
Link Hover
Input Focus Ring
Checkbox Active
Toggle Switch On
Slider Thumb
Card Border
Icon Highlight
Tooltip Background
Modal Header
Tab Active
Alert Box
Timeline Dot
Loading Spinner
Dropdown Selected
Table Row Highlight
Calendar Date
Mobile Device
See how to use #40054E in different programming languages
| Platform | Languages |
|---|---|
| Frontend | |
| Mobile | |
| Backend | |
| Others |
document.getElementById("box").style.backgroundColor = "#40054e";💡 Click any tab to see how to use #40054e in different programming languages