Is it just blackening or even there is change in shape as well ? If the shape is also changing then you must consider consulting your treating cardiologist as it could be a sign to something else and not necessarily a local problem related to nail.
Health Tips
I may be (want to be) wrong here but there is no harm in rulling out such posibility by taking opinion once as you already have cardiac problem, worsening of same can be life threatening.