What is the HEX code for cornflower blue?
The CSS color cornflower blue in HEX format is #5170d7. Use this value directly in CSS, SVG, and most design tools.
How do I use cornflower blue in CSS?
To apply cornflower blue in CSS:
- Text color: color: #5170d7;
- Background: background-color: #5170d7;
- Border: border-color: #5170d7;
What are all the color format values for cornflower blue?
| Format | Value |
|---|---|
| HEX | #5170d7 |
| RGB | rgb(81, 112, 215) |
| HSL | hsl(226.1, 62.6%, 58%) |
| CMYK | cmyk(62.3%, 47.9%, 0%, 15.7%) |
How do I convert cornflower blue to HEX?
Select cornflower blue from the color name list in our color converter. The HEX value — #5170d7 — appears instantly alongside HEX, RGB, HSL and CMYK.
What color family does cornflower blue belong to?
cornflower blue belongs to the blue color family. It is a medium, moderately saturated color with HSL values: hue 226.1°, saturation 62.6%, lightness 58%.
How do I create lighter and darker shades of cornflower blue?
Lighter variant (lightness 73%): #8fa3e5. Darker variant (lightness 43%): #2949b2. 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.