A Colfax pharmacy has agreed to pay a $20,000 penalty for failing to comply with controlled substance regulations, the U.S. Attorney’s Office announced Tuesday afternoon.