If you want to secure the longevity of your jeans, its important to wash them with dark clothing.
I have a bunch of pairs of jeans that I cycle through because I love denim.
Its important to use mild detergents and not washing them often.

Image by How To DIY & VR Gaming via YouTube
Plus, its better to hang and air dry your jeans instead of throwing them in the dryer.
Turn your jeans inside out will prevent the detergent from being too harsh on the dye.
According to this video, you’ve got the option to go 4-6 weeks without washing your jeans.

Sometimes I hand wash my jeans, but I understand it can be tedious.
Also, it depends on how much care you are willing to put into your jeans.
Use a color-preserving detergent to protect the dye from fading.

Set the washer to its lowest spin cycle and temperature.
Overall, there are many ways to prevent jeans from fading their color quickly.
However, Ive noticed that hand washing them comes off easier and faster.