You asked

Which fast prime helps dim indoor portraits on a sony a6400 with a sigma 17 40mm?

The Sigma 17-40mm f/1.8 is already the right kind of lens for this. A constant f/1.8 gives you plenty of light indoors, and at its long end (40mm, about 60mm on full frame) it's a workable portrait focal length. It isn't stabilised, and the Sony a6400 has no stabilisation in the body, so keep shutter speeds up for handheld work.

The guide's standard advice for dim indoor portraits on APS-C is a fast standard prime, around 33-35mm at f/1.4 to f/1.8 (your first lenses). The a6400's lens list shown here doesn't include a prime in that range, so this site can't name a specific one for you.

If you want a zoom that covers the same job, the list does include two f/2.8-class options for this body:

The 28-45mm is the stronger choice if your portraits are dim and you already own the 17-40mm, since the two cover wide and standard framing at the same speed.

Written by Claude from this site's pages.

The answer changes if

Ask next

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.