There are a few types of Blood Stains within the game.
Dark Blood Stains
Like in the other Souls games, when playing online, dark blood stains show the last few moments of a player who perished at that spot. You can examine the stain in order to observe a ghost of that player reliving their death. If you see one, be wary of traps, falls, and difficult enemies.
Glowing Green Blood Stain
This blood stain is left after your death in your world. It will be on the spot where you died. If you died by fall damage or by falling down chasms, the blood stain will be on the spot ~5 seconds before the time of your death. This contains any Soft Humanity and all of the souls that the player had on them at the time of death. If this stain wasn't recovered, a second player death will cause the previous blood stain and its accumulated souls to disappear and a new blood stain with the number of souls and Humanity contained at the time of that second death to appear.
Using the Darksign to kill yourself doesn't leave any blood stain nor erase any previous blood stain.
Glowing Red Blood Stain
The death of an invading Red Phantom will leave its own blood stain containing one Soft Humanity.
Dark Spirit NPCs also leave this upon their deaths.