Thirteen Union Pacific rail cars derailed early Saturday morning just north of Colfax in Placer County, according to the railroad company.