Sass blue() Function

Last Updated:

Sass blue() Function

The blue() function returns the blue channel of a given color as a number between 0 and 255.

Example

SASS TO CSS CONVERTER
//Check your console @debug blue(#e1d7d2); // 210 @debug blue(white); // 255 @debug blue(black); // 0

Syntax

blue($color)

Parameter Value

ValueTypeExplanation
$color Required Specifies a color.

Return Value

ValueExplanation
Number Returns the blue channel of $color as a number between 0 and 255.

Share this Page

Meet the Author