JavaScript » Screen » colorDepth

Syntax:
screen.colorDepth

If a color palette is in use, this property returns its bit depth. If not, the value reflects the screen.pixelDepth property.