I recently read a book called Artemis, which is very hard sci-fi as far as I can tell. It goes into great detail describing the economics supporting the moon base where the story takes place -- how much money it makes from tourism vs. exporting rocket fuel, how it got started by a corporation under Kenyan flag of convenience, etc. I don't know enough economics to judge whether it succeeded but it certainly tried to get the economics right, and seemed plausible enough to me.
The Mote in God's Eye is a pretty good example of social science fiction in addition to being a great science fiction novel in general.
The Three Body Problem (trilogy) by Liu Cixin is a masterful work that combines thoughtful hard science (the author is an engineer by training) with a keen political and sociological eye. Sociology is actually a core theme of the book, and the author goes so far as to define a "cosmic sociology" (I'm probably forgetting the actually term from the book, it's been a while since I finished reading). I can't recommend this author enough. The story is enthralling, the scientific and sociological predictions are delightful, surprising, and strikingly intuitive at the same time. I wouldn't place it is is merely a great sci-fi epic; it's truly an unparalleled work of literature and imagination.
Well, integrating all our best knowledge of social sciences for SciFi is hard. I am not sure if I can judge if it was successful or not in most cases. What I can point out instead is a couple of works where something like this had been attempted, as the author gave serious thought on how different technology and environment would affect society:
Depending on what you define as hard SF, the Nexus trilogy by Ramez Naam might fit. I've seen it described as hard SF, as "having some hard scifi elements", and as "dumbed down science fiction" by a particularly displeased Goodreads user; take your pick. I remember it being very easy to read and making more of an effort than usual to consider the society surrounding the characters. That might not mean getting the social sciences exactly right, though.
In general, I think the closer the time period is to our own, the more likely it is that the social sciences will be right, since the author will have more material to base them on.
It's been some time since I read one of his books and I'm not sure if he counts as hard SF, but maybe Ian McDonald? I remember being impressed by the complexity of River of Gods. If anyone has read more of his books, please confirm or infirm my guess.
Black Mirror?
Robin Hanson says that those stories are rare.
This is different from social science fiction, which is deliberate exploration of other possible forms of sociological organisation.