What is the purpose of using blue glass in identifying sodium and potassium? (flame test)?

I think I understand why in Sodium, but not in potassium. The color of potassium without blue glass is lilac, no? Is it because both have large concentration in sodium in it?