CSS named color
CornflowerBlue #6495ED
CornflowerBlue is a blue with the hex code #6495ED, which converts to rgb(100, 149, 237). Open #6495ED in the converter to tweak it.
CornflowerBlue color values
| HEX | #6495ED |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(100, 149, 237) |
| RGBA | rgba(100, 149, 237, 1) |
| 8-digit HEX | #6495EDFF |
| HSL | hsl(219, 79%, 66%) |
| HSV / HSB | 219°, 58%, 93% |
| CMYK | 58%, 37%, 0%, 7% |
| RGB 0–1 | 0.392, 0.584, 0.929 |
| Decimal | 6591981 |
| CSS keyword | cornflowerblue |
How #6495ED converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: 64 → 100, 95 → 149, ED → 237. That gives rgb(100, 149, 237). The step-by-step guide explains the math.
Shades of CornflowerBlue
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of CornflowerBlue
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of CornflowerBlue on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
Complementary
Analogous
Split-complementary
Triadic
Tetradic (square)
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | CornflowerBlue | 2.97:1 | Fail |
| Black | CornflowerBlue | 7.06:1 | AAA |
Use black text on a cornflowerblue background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use CornflowerBlue in CSS
.element {
color: cornflowerblue; /* keyword */
background-color: #6495ED; /* hex */
border-color: rgb(100 149 237 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #6495ED80 is CornflowerBlue at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for CornflowerBlue?
The CSS named color cornflowerblue is #6495ED in hexadecimal. In CSS you can write color: cornflowerblue; or color: #6495ED; — both produce the same pixel.
What is CornflowerBlue in RGB?
CornflowerBlue is rgb(100, 149, 237): red 100, green 149, blue 237 on the 0–255 scale. As normalized 0–1 floats that is (0.392, 0.584, 0.929).
Is white or black text more readable on CornflowerBlue?
Black text is more readable. White on #6495ED has a contrast ratio of 2.97:1 (Fail), black on #6495ED has 7.06:1 (AAA). WCAG AA needs 4.5:1 for normal text.