One way to understand the nature of hell is by contrasting the colors black and gray. Below is an interesting but useful optical illusion we can use as a metaphor.
The illusion above show four small gray squares all of the same shade of medium gray, in contrast to four others shades of gray, from light gray to black. The center gray looks darkest when contrasted by the lightest outer gray, while it looks the lightest when contracted to black. This is a metaphor of how Good and Evil are sort of relative to the grayness of the social ambiance; social norms.
In a world where everyone is good, even a medium gray behavior can look black. What is not so evil; medium gray, can look very evil; darker than it appears by contrast. On the other hand, in a world that is dark and full of evil, the same medium gray behavior now looks much lighter.
The concepts of heaven and hell are designed to help us mentally build these visual illusions, by showing the relative nature of sin. In the blackness of hell, even moderately shady behavior; medium gray, can appear good by contrast. If all people were brutal and killed all strangers, if you only brutalized but spared life you would seem to be good by contrast in such a world.
Heaven is pure white, so even whites lies would seem like light gray due to the contrast. In this sense, the righteous, to not contrast as evil with heaven, can not even appear lightest gray even if socially allowable. On the other hand, hell by being so black in color, offers hope to the criminals, in that even dark gray; hold back some evil, would appear like an upgrade to black; that offers hope; appears as lighter gray.
If you look at the lawlessness in Democrat run inner cities, especially with the DA's not prosecuting crime, they have created a dark gray background so moderately shady behavior; medium gray, looks lighter or more righteous. This make it easier to excuse the swamp; ends justifies the means.
On the other hand, in very religious pockets, where people work hard to be righteous, this very light gray background, can made moderate behavior, that is not really that dark, appears darker than it really is. The level of darkness can only be know against the darkest of Hell and not the lightest of light; Heaven.
The Heaven and Hell system was part of a calibration of the mind, so one can gauge good and evil by their own extreme set points. None of us are so evil compared to Hell; true black, or good compared to Heaven; true white. We are all in the middle somewhere; shades of gray; light to medium.