Handwash the shirt in cold water with detergent for the first wash. Keep it separate, avoid soaking, and air dry after washing.
If any dye transfer occurs, soak the shirt in cold water mixed with detergent for up to 2 hours. Repeat the soaking process if required.