" We find this more cosmic aspect of the Marian archetype expressed in the person of Galadriel’s own heavenly patroness, Elbereth, Queen of the Stars, who plays the role in Tolkien’s legendarium of transmitting light from the heavenly places. It is to Elbereth that the Elves sing their moving invocation: O Elbereth! Gilthoniel!
We still remember, we who dwell
In this far land beneath the trees,
Thy Starlight on the Western seas. Tolkien would have been familiar from his childhood with one of the most popular Catholic hymns to the Virgin Mary, the tone and mood of which are markedly close to that of Tolkien’s to Elbereth (see L 213): Hail, Queen of Heaven, the ocean star,
Guide of the wand’rer here below:
Thrown on life’s surge, we claim thy care—
Save us from peril and from woe.
Mother of Christ, star of the sea,
Pray for the wanderer, pray for me. Starlight on the sea: for Tolkien a particularly evocative combination, as we have seen. Light shining in darkness, representing the life, grace, and creative action of God, is the heart of Tolkien’s writing. "
― Stratford Caldecott , The Power of the Ring: The Spiritual Vision Behind the Lord of the Rings and The Hobbit