From the Super Mario Wiki
The Blue Berry is one of the berries acquired in the southeast path of Flower Fields in Paper Mario. It is needed to satisfy the blue flower gate guardian, allowing Mario to pass. The Blue Berry can also be given to a sad individual inside the well behind Petunia; in exchange, Mario receives the Flower Saver Badge. The Blue Berry recovers five FP.