I will also add that I've seen this in alot of cryptoheros hybrids. Personally has happened to fish I have bred, it happened when I bred two species of the same complex. Fry would be born with black tails.
Also seen this with melanochromis hybrids as well. Definitely not saying your fish are hybrids but there could be a small chance somewhere back on the line another species was involved. This happens often especially when the inexperienced fish keeper breeds two they think are the same.
Then again could just be a trait that has started to show. Black in fish doesn't always mean a good thing as previously mentioned their could be nerve damage or stress.Also at times as with swordtails the black in the tails and body can indicate they're cancerous.