In this analogy he is comparing quicksand to racial injustice just as he compares solid rock to human dignity.
The comparison of quicksand to racial injustice describes racial injustice as something that can trap a person or people and drag them down. In his comparison of solid rock and human dignity, he is defining human dignity as something that is strong, steadfast and seemingly unbreakable.