BLUE

Gets the blue channel of the specified color in the RGB colorspace. Returns an integer from 0 to 255. For more information about the RGB colorspace, see: https://en.wikipedia.org/wiki/RGB

Syntax

=BLUE(color)

Arguments

ArgumentTypeDescription
colorColorThe color

Examples

=BLUE("#0000ff")255
Gets the blue channel for the color represented by the hex color code #0000ff (blue)

=BLUE(RGB(128, 128, 128))128
Gets the blue channel for a color having a value of 128 for red, 128 for green, and 128 for blue

=BLUE(0)#ERROR!
Attempts to get the blue channel from an integer, which is invalid because it cannot be converted to a color