How to shade match foundation online without returning three of them
Undertone first, depth second, oxidation third. The method professional artists use, adapted for buying without a counter.

Buying foundation online has one honest advantage over a counter: no lighting designed to sell you something. It has one obvious problem, which is that you cannot swatch. Here is the method that gets it right roughly four times in five.
Step 1: Undertone, before anything else
Depth is easy to correct with a little powder or bronzer. Undertone is not — a cool foundation on warm skin reads grey no matter how well you blend it.
Check your wrist veins in daylight, then check which metal suits you better. Green veins and gold jewellery point to warm. Blue veins and silver point to cool. Most Indian skin tones sit in warm or neutral-warm territory, which is why "beige" ranges usually work better than "ivory" ones.
Step 2: Depth from your jawline, not your hand
Your hand is almost always a different depth from your face. Photograph your bare jawline in indirect daylight with no filter, and compare it to swatch photos taken the same way.
Step 3: Account for oxidation
Most foundations darken about half a shade within an hour as they react with air and sebum. When you are between two shades, take the lighter one.
Step 4: Read reviews from people with your skin type
A foundation that a dry-skinned reviewer calls "beautifully hydrating" is a foundation that will slide off oily skin by lunchtime. Filter reviews by skin type before you trust the shade advice in them.
If it still goes wrong
A shade too light works as an under-eye brightener. A shade too dark mixes into moisturiser as a tint, or works as a summer shade when you tan. Neither is wasted.