Colors: Platform vs Project

For UI that uses basic colors like white and black, when should I define them myself instead of relying on the platform values? I want to understand various pros/cons of this practice.