Two things seem clear to me in scripture:
"For this is good and acceptable in the sight of God our Savior; Who will have all men to be saved, and to come unto the knowledge of the truth"--1 Timothy 2
"The Lord is not slack concerning his promise, as some men count slackness; but is longsuffering to us, not willing that any should perish, but that all should come to repentance"-- 2 Peter 3
One is that God is biased toward salvation. God is not impartial on the subject, uncaring whether a man is saved or not, but sincerely wants every person to be saved. He is not equally balanced so that one has a fifty-fifty chance of going either way, but tilted toward salvation so that one has to purposefully run away from Him in order to miss it.
And should I not have concern for the great city of Nineveh, in which there are more than a hundred and twenty thousand people who cannot tell their right hand from their left. -- Jonah 4
The servant who knows the master's will and does not get ready or does not do what the master wants will be beaten with many blows.-- Luke 12
Jesus said, "If you were blind, you would not be guilty of sin; but now that you claim you can see, your guilt remains. -- John 9
Two is that--correlating with point One--God takes ignorance into consideration in His judgment. To what extent, I don't know, nor do I need to know--I should not know a person who I've left ignorant of God, so it's not relevant to me how He judges the ignorant.
With regard to infants who die, the point is not that they are perfectly innocent, the point is that they are perfectly ignorant.
The wrath of God is being revealed from heaven against all the godlessness and wickedness of people, who suppress the truth by their wickedness, since what may be known about God is plain to them, because God has made it plain to them.For since the creation of the world God’s invisible qualities—his eternal power and divine nature—have been clearly seen, being understood from what has been made, so that people are without excuse.-- Romans 1
What leaves them without excuse is their knowledge. They are condemnable by what they knew and how they responded to what they knew, not their ignorance.
We have heard how the Lord dried up the water of the Red Sea for you when you came out of Egypt, and what you did to Sihon and Og, the two kings of the Amorites east of the Jordan, whom you completely destroyed. When we heard of it, our hearts melted in fear and everyone’s courage failed because of you, for the Lord your God is God in heaven above and on the earth below.
Now then, please swear to me by the Lord that you will show kindness to my family, because I have shown kindness to you. Give me a sure sign that you will spare the lives of my father and mother, my brothers and sisters, and all who belong to them—and that you will save us from death.”-- Joshua 2
Again, the Canaanites are condemned by how they responded to what they knew, not by what they didn't know. But how can one respond?
Speaking to pagans, Paul said:
People of Athens! I see that in every way you are very religious. For as I walked around and looked carefully at your objects of worship, I even found an altar with this inscription: to an unknown god. So you are ignorant of the very thing you worship—and this is what I am going to proclaim to you.
The God who made the world and everything in it is the Lord of heaven and earth and does not live in temples built by human hands. And he is not served by human hands, as if he needed anything. Rather, he himself gives everyone life and breath and everything else.
From one man he made all the nations, that they should inhabit the whole earth; and he marked out their appointed times in history and the boundaries of their lands. God did this so that they would seek him and perhaps reach out for him and find him, though he is not far from any one of us. ‘For in him we live and move and have our being.’ As some of your own poets have said, ‘We are his offspring.’-- Acts 17
So it's possible to be ignorant of exactly who God by name--and yet God has made it possible to "seek him and perhaps reach out for him and find him."
It’s a rare Christian who will contend that Job is unsaved…yet, what saves him?
Job is a man who worships God in ignorance, which is much of what the book is about. He had no gospel of John or even a Mosaic Law. He guessed at his worship, doing what he thought should be proper, making sacrifices "just in case."
Indeed, when Gentiles, who do not have a covenant, do by nature things required by a covenant, they are a covenant for themselves, even though they do not have a covenant.-- Romans 2
Job was a man with an individual covenant with God. How did Job know about God? Well, I see this in scripture:
The heavens declare the glory of God, and the sky proclaims the work of His hands. Day after day they pour out speech; night after night they communicate knowledge. There is no speech; there are no words; their voice is not heard. Their message has gone out to all the earth, and their words to the ends of the world.—Psalm 19
And then I see God saying these things to Job:
Canst thou bring forth the constellations in their seasons? Or canst thou guide Arcturus with his sons? – Job 38
Look at Behemoth, which I made along with you. He eats grass like an ox. Look at the strength of his loins and the power in the muscles of his belly. – Job 40
Can you pull in Leviathan with a hook or tie his tongue down with a rope? -- Job 41
This is unique. God does not speak of His creation—things like stars and great beasts—to anyone else like this. To the Jews, for instance, God spoke of the things He did for them. But to Job, God speaks of His creation. I believe that’s because Job knows God only through His creation, which is what Paul said to the Athenians that God intends.
Moreover, God holds men accountable for seeing Him in nature and believing in Him through nature, to repeat:
For God’s wrath is revealed from heaven against all godlessness and unrighteousness of people who by their unrighteousness suppress the truth, since what can be known about God is evident among them, because God has shown it to them.
For His invisible attributes, that is, His eternal power and divine nature, have been clearly seen since the creation of the world, being understood through what He has made. As a result, people are without excuse. -- Romans 1
Job says this, in frustration:
If only there were someone to mediate between us, someone to bring us together, someone to remove God’s rod from me, so that his terror would frighten me no more. -- Job 9
Job did not know the name of Jesus, but he knew he needed a mediator between him and God. Thus, no other religion provides satisfaction. The man who sees God in nature, who seeks after Him, will be frustrated with any other religion.