A passenger in a moving motor vehicle may consume alcohol:

Open containers of alcohol are not permitted to be in the passenger area of any moving vehicle. This includes space in the vehicle that can be occupied by the driver or any passenger.
DMV Writen Test