Your eyes take 20 to 30 minutes to adapt to the dark, and a single glance at white light resets most of that. A deep-red light helps because the rod cells that do your night seeing barely respond to long-wavelength red. A red light is still light, though, so the dimmest setting that works is the right one.
Reading a chart or planisphere. A headlamp with a red mode leaves both hands free. Pick one that turns on in red, so you never flash white by accident, and that dims all the way down.
Walking to a dark site. A handheld flashlight with a dimmable red setting lets you aim the light at your feet and away from other people's eyes.
Shared sites and star parties. Use the lowest red setting and keep it pointed down. Many clubs ask for red only, with no white at all.
Budget fix. Layers of red cellophane or red tape over a white flashlight work in a pinch. Add layers until the beam is barely enough to read by.
Phones. Use a red night mode with the brightness all the way down. It still tempts you to scroll, though, and that costs you more dark adaptation than any flashlight does.
Related: Protect your night vision, Starter kit for the next clear night