If you take care of it the blue will stay nice and pretty for decades. If not longer.
When you're done with it, take it out of the holster and clean it.
Wipe it down with an oily rag. Make sure the whole blued surface is protected by the oil. It's okay to use more and then wipe off the excess with that oily rag. It's okay to use a small clean brush (I've used a tooth brush for years) to work the oil into the cracks/crevices, checkering, around the sights, etc. Take the grips off now and then and wipe oil under the grips before putting the grips back on it.
Once you've wiped it down correctly do not touch it with your bare fingers/skin. Some people may be worse for it than others but the oils/sweat/salts on your skin can cause the metal to rust where you touched it.
If you've wiped it down correctly it can sit on a shelf in a gun safe or in a gun case for years and not rust.
My M29 S&W sat in it's factory wood/presentation box till the blue foam disintegrated, but it didn't rust. It's been in a "pistol rub" for the last few years. Oh, the M29 was bought new in about 1983 and carried on duty for a couple years and got shot quite a bit before we went to 686's.
Here's a picture of a section of the barrel off my Ithaca M37 that I cut off in the last 80's to make it a better brush gun for grouse/rabbits. It did rust where I touched it during the cutting process and after sitting on a shelf in the attic for 20 some years. My dad bought the shotgun for me, used, in 1969 and I hunted in all kinds of weather during the fall and winter months in ND, WV, IL, AR, TX and VA. It stayed in an old Sears padded carry case when not in the woods/fields in my hands.

Just for the heck of it (and to prove a point) I got a small piece of 0000 steel wool and some oil (3n1 oil, Mobil 1, doesn't matter if it's a light oil) and some light rubbing removed that light corrosion and made it shine like new again. This piece of barrel is about 55 years old and sat in the attic on a shelf for over 20 years after I handled it without wiping it down again.

If you plan on carrying a nicely finished/blued handgun in a holster you need one that is formed and padded to fit the handgun well and protect the finish from inserting, removing from the holster and from moving around in the holster. They used to make good leather holsters like that. A kydex holster, or a plain leather holster without the additional material (like a fine soft leather sewed inside the holster) will wear the finish on your pistol.