Answer:
They are both telling the truth.
Explanation:
Red said that blue was lying before blue said that red was telling the truth. Red couldn't have predicted blue's next statement, so blue must have said something first that wasn't true, and when red said that it was a lie, blue confirmed red's statement.