If you can’t find the perfect thread color match for your fabric and have to choose between slightly lighter or slightly darker, go darker.
A lighter shade will stand out against your fabric and highlight the hem or seamline.
The darker shade will appear like a shadow and actually blend better with your fabric.
If there is no thread color even close, you can always go with a contrast thread color and make it stand out on purpose as a design element!