i’m on the pill

i’m on the pill, i take it everyday and my bf doesn’t use a condom sometimes but recently i’ve started cramping and then today i got dark brown discharge.. what is this?