Dogs with severe skin allergies can develop black patches but the skin in that area is thick, itchy, and almost like elephant skin.
That is called lichenification and it is caused by inflammation.
Fleas typically do not cause dark patches but will cause hair loss along the back of the hind legs.