Right
京 supplies the sound - jīng shifted to liàng through an old velar/lateral alternation in this phonetic family.
京 itself pictures a tall watchtower or capital gate; the meaning doesn't carry. Same phonetic in
凉 cool and
鲸 whale - a tight jīng / liàng / liáng cluster.