The valve should be about 1.5 cm longer than the rim height. This is the length you need for inflating your tyre.
Check the Tubeless Valve page for an overview of the valve length per model of wheels in our collection.