Pregnancy Test

What's the earliest you can take a pregnancy test and have it be accurate? And which brand is the most accurate?