The court can impose various consequences for violating a custody order in California. These consequences may include modification of custody arrangements, financial penalties, and, in extreme cases, imprisonment for repeated and willful violations. The severity of the consequences will depend on the circumstances and the court's discretion.