For the best results, follow these steps when exporting from iMovie:
Click 'File > Share > File…' from the top menu bar.
Set Resolution to the same as the project, usually "1080p"
Set Quality to "High"
Set Compress to "Better Quality"
Choose where you want to save it, then click 'Save'