this is a pretty basic illusion. The color that borders the two boxes is brighter than the box color. Making it seem like there are two different colors. So when you cover border, you're really just covering the brightest part.
Now I'm off to be even more obvious. CAPTIAN OBVIOUS AWWWAAAYY!!!!!!!