No, you can use only 2 colors for all the game. Maybe I'm going to create an other game jam with this principle ^^
Because with gradiant you don't have only 2 colors on screen