When we are moving from left to right in a
periodic table that is from La to Lu the size decreases due to increase
in nuclear charge. If the size of a central atom decreases in hydroxides
the basic character also decreases.
When we compare the basicity of La(OH)3 & Lu(OH)3 lanthanum hydroxide is more basic