#5797F7
Closest named color: Cornflower Blue (#6495ED). oklch(67.8% 0.157 258.3), rgb(87, 151, 247).
Aa
Black text reads best on this color (7.17:1).
About this color
#5797F7 is a medium-light, vivid blue. In OKLCH its lightness is 68%, its chroma 0.157 and its hue 258°. Its hue sits on the cool side of the wheel. The nearest named color is Cornflower Blue (#6495ED), ΔE 0.018 away. Black text reads best on it, at 7.17:1.
| Hue family | Blues |
| Lightness | medium-light (68%) |
| Chroma | vivid (0.157) |
| Temperature | cool |
| Nearest name | Cornflower Blue (#6495ED) |
| Black text | 7.17:1 |
| White text | 2.92:1 |
Values
| HEX | #5797F7 |
| RGB | rgb(87, 151, 247) |
| HSL | hsl(216, 91%, 65%) |
| OKLCH | oklch(67.8% 0.157 258.3) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #5797F7 | 2.92:1 | Fails | Lc -60.7 | Content text, not long reading |
| Black text on #5797F7 | 7.17:1 | AAA | Lc 48.6 | Large or bold text, headings |
| #5797F7 text on white | 2.92:1 | Fails | Lc 55.4 | Large or bold text, headings |
| #5797F7 text on black | 7.17:1 | AAA | Lc -46.4 | Large or bold text, headings |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 400.
-
Step 50
50
#F0F6FF
oklch(97.1% 0.014 258.3)
-
Step 100
100
#DFEBFD
oklch(93.6% 0.028 258.4)
-
Step 200
200
#C3DBFE
oklch(88.5% 0.055 257.7)
-
Step 300
300
#9AC3FF
oklch(81% 0.096 257.8)
-
Step 400
400 (this color)
#5797F7
oklch(67.8% 0.157 258.3)
-
Step 500
500
#2F84FF
oklch(63% 0.2 258.5)
-
Step 600
600
#006BEA
oklch(55.6% 0.209 258.4)
-
Step 700
700
#005AC6
oklch(49.1% 0.184 258.2)
-
Step 800
800
#0049A4
oklch(42.7% 0.16 258.3)
-
Step 900
900
#093E85
oklch(37.7% 0.13 258.2)
-
Step 950
950
#09254E
oklch(27.1% 0.083 258.4)
#5797F7 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #6C9FFB | 0.032 |
| Deuteranopia (no green cones) | #5490F5 | 0.019 |
| Tritanopia (no blue cones) | #00ADBB | 0.128 |
| Achromatopsia (no color) | #979797 | 0.157 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5797F7
#5797F7
oklch(67.8% 0.157 258.3)
- #C68B00
#C68B00
oklch(67.8% 0.141 78.5)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #5797F7, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Cornflower Blue #6495ED ΔE 0.018
- Chefchaouen Blue #4895EF ΔE 0.019
- Soft Blue #6488EA ΔE 0.040
- Dark Sky Blue #448EE4 ΔE 0.040
- Dodger Blue #1E90FF ΔE 0.045
- Periwinkle Blue #8F99FB ΔE 0.065
- Lavender Blue #8B88F8 ΔE 0.067
- Perrywinkle #8F8CE7 ΔE 0.068
Use #5797F7 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.