Box coloring for spectrum