In some cases, yellow nails are linked to respiratory ... such as pneumonia. When your nails turn blue or purple, it is a clear sign that your body is not receiving enough oxygen.