Major chords follow the formula 1-3-5-7. Both Ionian and Lydian modes contain these notes; therefore either mode can be used. Minor chords follow the formula 1-b3-5-b7. Dorian, phrygian, and aeolian all contain that formula, therefore any one of them can be played.