The shadow should match the color of the top square and not the color of the bottom square. The top square and its shadow are both color-corrected from sRGB.