As CP, it should work just fine.
What kind of rebuild did the 340 get? If it's a fairly stock rebuild a 904 would work fine as well, especially for a driver. The 727 is a stronger transmission, but it also has more parasitic loss than a 904, so less power to the ground. If you have a mild 340, the 904 will hold up fine and will be more efficient too.