What is the HEX code for blue?
The CSS color blue in HEX format is #0000ff. Use this value directly in CSS, SVG, and most design tools.
How do I use blue in CSS?
To apply blue in CSS:
- Text color: color: #0000ff;
- Background: background-color: #0000ff;
- Border: border-color: #0000ff;
What are all the color format values for blue?
| Format | Value |
|---|---|
| HEX | #0000ff |
| RGB | rgb(0, 0, 255) |
| HSL | hsl(240, 100%, 50%) |
| CMYK | cmyk(100%, 100%, 0%, 0%) |
How do I convert blue to HEX?
Select blue from the color name list in our color converter. The HEX value — #0000ff — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does blue belong to?
blue belongs to the blue color family. It is a medium, vivid color with HSL values: hue 240°, saturation 100%, lightness 50%.
How do I create lighter and darker shades of blue?
Lighter variant (lightness 65%): #4d4dff. Darker variant (lightness 35%): #0000b3. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.
What is HEX used for?
HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.