Paint color with same codes do not match
The codes are nice, and they're usually pretty close.  But, especially at the retail level, it's not an exact science.  There can be variations even between buckets in the same purchase.  

Based on advice from family who have worked as a painting contractors for decades...

When you buy paint, make sure to get enough for the entire job in one go.  Make sure it's all the same base.  I tend to go to dedicated paint stores rather then Lowes or Home Depot for significant jobs.  That's where the pros go for a reason.  They have better equipment &amp; training and - in my experience - do a better job.

Mix well, scraping off the bottom - particularly if it's set awhile since the store shook it.  Get one of those drill operated paddles.

Have a few extra empty 5 gallon buckets (depending on size of the job)

Start the job by using those extra buckets to mix all of your buckets of paint together and stirring thoroughly.  This ensures that you'll have a consistent color for the entire job.  I've definitely noticed differences in tint when pouring buckets together in this step.

Back to your situation.  I think your only solution is to get another batch of paint and re-paint both pieces.