Some lubes are very agressive and will push out any other lubes that may be on the chain. It's called 'wetting'. It will do exactly as you describe; It will leave your chain a black mess until all the lube and foreign particles are pushed out.
I used to experience this with the early Finish Line Ceramic lubes until they changed their carrier.
Oh, the burden...the burden...