Cornflower Color — #5170D7: Codes, Palettes & Contrast
Cornflower (#5170D7) color codes in RGB, HSL, and OKLCH, the most readable text color on it, WCAG contrast ratios against white and black, and matching color palettes.
Cornflower is a named blue color, ready to use anywhere you need it.
Cornflower#5170D7
Cornflower color codes
| HEX | #5170D7 |
|---|---|
| RGB | rgb(81, 112, 215) |
| HSL | hsl(226, 63%, 58%) |
| OKLCH | oklch(0.575 0.161 268.4) |
Browse more blue colors.
Readable text on Cornflower
Black text (#000000) has the higher contrast against this background: 4.65:1.
| Text color | Ratio | Normal text AA | Normal text AAA |
|---|---|---|---|
| Black | 4.65:1 | Pass | Fail |
| White | 4.52:1 | Pass | Fail |
Normal text requires at least 4.5:1 for WCAG AA and 7:1 for AAA. Check another combination.