I don't know.
I suspect that the apples had been treated with methylene blue to protect them from fungi in storage. It is not easy to wash the last residues from fruit, so if you are worried about the stuff (which I personally would not be) then you could try soaking your apples for a short while in water containing a lot of used tealeaves or teabags, or wash them with leftover tea from a teapot. I would expect such materials to absorb the dye.