Weird discharge

Does anyone know why I have a weird heavy dark brown discharge right before I start my period? I've had the dark brown discharge for a couple hours yesterday and all day today and I just now am getting bright red blood...