What is the HEX code for royal blue?
The CSS color royal blue in HEX format is #0504aa. Use this value directly in CSS, SVG, and most design tools.
How do I use royal blue in CSS?
To apply royal blue in CSS:
- Text color: color: #0504aa;
- Background: background-color: #0504aa;
- Border: border-color: #0504aa;
What are all the color format values for royal blue?
| Format | Value |
|---|---|
| HEX | #0504aa |
| RGB | rgb(5, 4, 170) |
| HSL | hsl(240.4, 95.4%, 34.1%) |
| CMYK | cmyk(97.1%, 97.6%, 0%, 33.3%) |
How do I convert royal blue to HEX?
Select royal blue from the color name list in our color converter. The HEX value — #0504aa — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does royal blue belong to?
royal blue belongs to the blue color family. It is a medium, vivid color with HSL values: hue 240.4°, saturation 95.4%, lightness 34.1%.
How do I create lighter and darker shades of royal blue?
Lighter variant (lightness 49.1%): #0706f5. Darker variant (lightness 19.1%): #03025f. 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.