Hello!

Can we say the following

"The three of them are the best of friends"
the best of friends?

Yes, it'a all correct. You could also say any of these:

Those three are best friends.

Those three are the best of friends.

The three girls are the best of friends.

The three girls are best friends.

(and I'm sure there are other possibilities!)