Your pan is too hot! Butter is sensitive to high heat and will quickly burn and turn black. Avoid high heat; start on low heat to melt and medium heat to brown butter.