U.S. crude oil pipeline transportation company Shell Midstream Partners LP has agreed to purchase more stakes in a pair of pipelines in an $800 million deal.

Shell Midstream Partners LP, the logistics arm of oil giant Royal Dutch Shell, intends to buy stakes in two pipelines that move gasoline, diesel and jet fuel to the Midwest and East Coast.

Under the pact, Shell Midstream agreed to buy Shell's 10.13 percent stake in the Colonial Pipeline Co. and also buy Shell's 26 percent stake in the Explorer Pipeline Co.

The deal will give Shell Midstream, which in 2018 booked $524.7 million in revenue, a 38.6 percent stake in the Explorer Pipeline and a 16.13 percent stake in the Colonial Pipeline.