Brown blood…

So my period started the 10th July but it was brown and It was a little I then stopped on the 17th and started AGAIN on the 20th and it’s still brown I’m also on the pill does anyone know why my blood is brown for so long