That box is really just an optional reference point for a color tinted black. I don’t like using pure black in my interfaces, so I will instead since it toward the primary brand color.
In order to come up with a nice looking color tinted black, I have a rectangle with the primary brand…
I understand what you’re asking now. In the article screenshots, I am showing two potential scenarios for credit cards: