Brown discharge

I’m halfway through my pill pack and am having brown discharge almost like the end of a period. Haven’t had sex for 5 weeks. Never had this before and been on the pill for 2 years. What could this be?