CMIMC 2019 Combinatorics and Computer Science Problem 2

How many ways are there to color the vertices of a cube red, blue, or green such that no edge connects two vertices of the same color? Rotations and reflections are considered distinct colorings.