You can use up to 255 characters to name files and folders in Mac OSX. Volume (hard drive) names are limited to 27 characters.
For all Mac operating systems, names cannot include the colon (:) character. This character is reserved by Mac OS to denote catalog hierarchy. A colon typed in a file or folder name will be replaced by a dash (-) automatically by Mac OS.
You can find more details on files and folders on the Apple Web site at: http://docs.info.apple.com/article.html?artnum=25010.