Inspect CornflowerBlue (#6495ED) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.
CornflowerBlue
#6495ED
Black text reads best on this background, at 7.06:1.
CornflowerBlue is one of the 148 CSS named colors, and resolves to #6495ED in every browser. In numbers that is rgb(100, 149, 237) and hsl(219, 79%, 66%). Perceptually it is a mid-toned, moderately saturated color: OKLCH puts its lightness at 67% and its chroma at 0.141. It sits in the blues at 261 degrees of OKLCH hue, and reads as a cool color.
White text only reaches 2.97:1 here, so black text is the safer pairing at 7.06:1. That combination of lightness and chroma makes it a workable mid-tone, the kind of value that lands in the middle of a shade scale.
The closest CSS named colors to CornflowerBlue, measured with CIEDE2000, are DodgerBlue (#1E90FF), SteelBlue (#4682B4), LightSlateGray (#778899). If CornflowerBlue is not quite right, those are the nearest keywords to try before reaching for a custom value.
HEX
#6495ED
RGB
rgb(100, 149, 237)
HSL
hsl(219, 79%, 66%)
HWB
hwb(219 39% 7%)
CMYK
cmyk(58%, 37%, 0%, 7%)
LAB
lab(61.23 3.05 -50.19)
LCH
lch(61.23 50.28 273.47)
OKLCH
oklch(67.46% 0.1414 261.34)
WCAG asks for 4.5:1 between body text and its background. On #6495ED white text measures 2.97:1 and black text 7.06:1, so black clears it and white does not.
White text on CornflowerBlue
WCAG 2.2
2.97:1
APCA
Lc 61
Fails AA body text
Fails AAA body text
Fails AA large text
Black text on CornflowerBlue
WCAG 2.2
7.06:1
APCA
Lc 47
Passes AA body text
Passes AAA body text
Passes AA large text
Check CornflowerBlue against any other color in the contrast checker.
CornflowerBlue sits at 67% OKLCH lightness. Holding its hue and chroma and moving only that value carries it up to #F5F9FF and down to #00041A, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.
#78A9FF
20% lighter
#98BDFF
40% lighter
#B7D1FF
60% lighter
#D6E5FF
80% lighter
#F5F9FF
100% lighter
#4473C8
20% darker
#2551A3
40% darker
#053180
60% darker
#00174C
80% darker
#00041A
100% darker
Build a full accessible scale from #6495ED in the shade generator.
Hues rotated around #6495ED in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.
CornflowerBlue sits at 261 degrees. Rotating it a half turn lands on 81 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.
The neighbors of CornflowerBlue at 231 and 291 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.
261, 21 and 141 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.
Instead of the complement at 81 degrees, this pair flanks it at 51 and 111. You keep most of the contrast of a complementary pairing while losing the harshness.
Explore more combinations around CornflowerBlue on the color wheel.
The biggest shift is under achromatopsia, where #6495ED reads as #919191, 23.7 CIEDE2000 units away. If CornflowerBlue is the only thing marking a state or a series, roughly one viewer in twelve will miss it.
Protanopia
#7C98F2
Deuteranopia
#6F8BEB
Tritanopia
#48A6B0
Achromatopsia
#919191
The nearest CSS keywords to #6495ED, ranked by perceptual distance rather than by how close their hex digits happen to look.