Here we go again!
You will find the mother of all threads on the subject
here.
In general -16 or -18 dbfs (what you see in Sonar) is 0vu (your analog signal); BUT it depends on your equipment.
YOU have to test and calibrate it for your system.
"Record as close to 0dbfs as possible" was the mantra in the 16 bit days.
It was BAD advice then, and is worse now when working at 24 bits.
0vu is/was still -16dbfs at 16 bits (and 24 bit).
Most, if not all, prosumer gear gets "brittle" at high gain levels (the gain necessary to get a 0vu signal to 0dbfs).
Even LOTS of pro gear is running out of usable headroom at that point.
Read the linked thread, there's a wealth of knowledge there...
Tom