# RGB_B
{: .no_toc }

Returns the blue component (as an **Integer**) from a given RGBA colour value.

Syntax: **RGB_B(** *RGBA* **)**

*RGBA*
: *required* A **Long** RGBA colour value, of the kind returned by [**RGB**](/tB/Modules/Information/RGB.md) or [**RGBA**](/tB/Modules/Information/RGBA.md).

The return value is the blue component in the range 0--255.

### Common Errors

| Error | When |
|---|---|
| [94 (`&H5E`)](/Reference/Run-time-Errors.md#94), *Invalid use of Null* | *RGBA* is **Null** |

### Example

This example extracts the blue component from a colour built with **RGB**.

```tb check_build
Dim MyColor As Long
Dim BlueComponent As Integer
MyColor = RGB(210, 45, 200)
BlueComponent = RGB_B(MyColor)        ' Returns 200.
```

### See Also

- [RGB](/tB/Modules/Information/RGB.md), [RGBA](/tB/Modules/Information/RGBA.md) functions
- [RGB_R](/tB/Modules/Information/RGB_R.md), [RGB_G](/tB/Modules/Information/RGB_G.md), [RGBA_A](/tB/Modules/Information/RGBA_A.md) functions
