Cornflower blue Color — HEX, RGB, HSL & CMYK Codes

#5170d7
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%)
HSV hsv(226.1, 62.3%, 84.3%)

cornflower blue color harmonies

Tints & shades of cornflower blue

Tints (lighter)

#617ddb #718ade #8097e2 #90a4e6 #a0b1e9 #b0beed #c0cbf0 #d0d8f4 #dfe5f8 #eff2fb

Shades (darker)

#4a66c3 #425cb0 #3b519c #344789 #2c3d75 #253362 #1d294e #161f3b #0f1427 #070a14

Contrast & accessibility

The quick brown fox

On white · 4.52:1 · AA

The quick brown fox

On black · 4.65:1 · AA

Recommended text color: #000000

Use cornflower blue in code

CSS color: #5170d7;
SCSS $color: #5170d7;
Tailwind bg-[#5170d7]
Swift UIColor(red: 0.318, green: 0.439, blue: 0.843, alpha: 1)
Android Color.parseColor("#5170d7")
Flutter Color(0xFF5170D7)

Colors similar to cornflower blue

Browse all Blue colors →

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?

FormatValue
HEX#5170d7
RGBrgb(81, 112, 215)
HSLhsl(226.1, 62.6%, 58%)
CMYKcmyk(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.