Musicians and writers alike tackle similar "Big Questions", and occasionally draw ideas from each other to express their worldview. Therefore, it comes to no surprise that the widely known single "Demons" by Imagine Dragons (a.k.a Amigos In Danger, an anagram used by hardcore fans) references Lord of the Flies by William Golding.
Here is my breakdown à la Adrienne Gao:
When the days are cold 
And the cards all fold  
And the saints we see 
Are all made of gold
(Just when Ralph's head is about to part ways with his body)
(Naval officer with "gold foliage" on his cap arrives)
When your dreams all fail 
And the ones we hail 
Are the worst of all 
And the blood’s run stale
(Ralph has failed to keep a fire going)
(Even the littluns worship Jack)
(Including MBB, death count is 3! already)
I wanna hide the truth 
I wanna shelter you 
But with the beast inside 
There’s nowhere we can hide
(Ralph tries to maintain a civil society)
("Maybe it's only us"-Simon)
No matter what we breed 
We still are made of greed 
This is my kingdom come 
This is my kingdom come
(Golding's worldview: Humans are fundamentally evil)
(According to Baumeister, greed is one of the roots of evil)
("Thy kingdom come" refers to the end of the (Ralph's) world in the Lord's Prayer)
When you feel my heat 
Look into my eyes 
It’s where my demons hide 
It’s where my demons hide
(Jack & Co. setting the entire island on fire)
(The Beast lives within us)
Don’t get too close 
It’s dark inside 
It’s where my demons hide 
It’s where my demons hide
At the curtain’s call 
It's the last of all 
When the lights fade out 
All the sinners crawl
(A "curtain" flaps in Ralph's head whenever he loses focus, when he starts to give in to the savagery)
(Ralph hides where "only a crawler like himself" could get in)
So they dug your grave 
And the masquerade 
Will come calling out 
At the mess you made
(Ralph's final resting place is kindly prepared: on a stick)
(Jack & Co. wearing face paint)
(This is ironic since the island is toast thanks to Jack, not Ralph)
Don't wanna let you down  
But I am hell bound 
Though this is all for you 
Don't wanna hide the truth
(Open to interpretation) 
No matter what we breed 
We still are made of greed 
This is my kingdom come 
This is my kingdom come
[Chorus]
They say it's what you make 
I say it's up to fate 
It's woven in my soul 
I need to let you go
(Again, Golding's worldview of nature "fate" > nurture "what you make")
Your eyes, they shine so bright 
I wanna save that light 
I can't escape this now 
Unless you show me how
(The naval officer is described as shiny "white", "gilt", "gold")
(Ralph wants to be like him, as a responsible sensible adult)
(He cries for "the end of innocence", and it is too late to change anything)
(He believes that the officer can help fix everything because he is a responsible adult. This is ironic since the adults are mirroring the boys action, only on a macro scale)
[Chorus]
Fun fact: Dan Reynolds (Frontman of Amigos In Danger) and William Golding were both born on a Tuesday. Rito Tanaka was born on a Thursday.