Well,please allow me to take the contrarian view.
Approximately 1 month after leaving the factory (nice new paint) two panels were repainted by the dealer - one on the car, one off the car. One was too dark, one was too light. The dealer assumedly used the "code from the door".
A year later, another panel was painted by an independent shop referred by my insurance company. Manager called me laughing, "come take a look. I don't think it matches". He called in the DuPont field rep, who brought the $20,000 color analyzer. Worse match than "from door". Sent a painted part to the DuPont factory to be read by their $50,000 analyzer. Even worse.
Brought the car to a shop that uses PPG, 99% sure that's the brand used at the factory. Mixed per the door, one tweak, not quite, second tweak, threw out the mix. Tried again, got it on the first tweak. Needed 3 coats rather than the two specified; direction of spray made a difference (left to right vs. right to left). Good match. They said they would save the actual mix code so that they could repeat it in the future.
Brought in two weeks later to redo the two original mismatches from the dealer. Couldn't hit it with the prior mix. Went through process again, finally matched it.
Observations, admittedly personal:
1. Use the same brand paint as the manufacturer. Even though the base chemistry may be different, the coloration at least has a baseline starting point.
2. Use a shop known for their colormatching expert. In my case, the automated equipment was worthless.
3. Check the color from different angles.
4. Check the color in different lighting conditions - sunlight, overcast, lightbulbs, flourescent. Look especially carefully if there was more than one tweak - chances increase that it will match under one or two conditions, but not others.
5. Check adjacent panels for directional consistency - I apparently do not have any metallic or pearl in my paint, but it's a "flip-flop". From one direction it's reflective and shiny; from the other, it's dull. Even though the color seems to match, adjacent panels may not (I would guess this would also happen in metallic paints in the particles are not equally distributed in adjacent panels).
That's been my experience.
BTW, I believe that the shop that could not get the match was recommended by Consumer Checkbook. If you want to post the name of the shop you're considering, I'll PM to you whether or not they're the one.