#40A7FB
Closest named color: Chefchaouen Blue (#4895EF). oklch(70.7% 0.155 247.1), rgb(64, 167, 251).
Aa
Black text reads best on this color (8.13:1).
About this color
#40A7FB is a medium-light, vivid blue. In OKLCH its lightness is 71%, its chroma 0.155 and its hue 247°. Its hue sits on the cool side of the wheel. The nearest named color is Chefchaouen Blue (#4895EF), ΔE 0.048 away. Black text reads best on it, at 8.13:1.
| Hue family | Blues |
| Lightness | medium-light (71%) |
| Chroma | vivid (0.155) |
| Temperature | cool |
| Nearest name | Chefchaouen Blue (#4895EF) |
| Black text | 8.13:1 |
| White text | 2.58:1 |
Values
| HEX | #40A7FB |
| RGB | rgb(64, 167, 251) |
| HSL | hsl(207, 96%, 62%) |
| OKLCH | oklch(70.7% 0.155 247.1) |
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 #40A7FB | 2.58:1 | Fails | Lc -55.2 | Large or bold text, headings |
| Black text on #40A7FB | 8.13:1 | AAA | Lc 54.0 | Large or bold text, headings |
| #40A7FB text on white | 2.58:1 | Fails | Lc 50.1 | Large or bold text, headings |
| #40A7FB text on black | 8.13:1 | AAA | Lc -51.9 | 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
#EFF6FE
oklch(97% 0.013 251.6)
-
Step 100
100
#DCECFC
oklch(93.6% 0.028 248.1)
-
Step 200
200
#BDDDFB
oklch(88.4% 0.054 246.7)
-
Step 300
300
#8DC7FC
oklch(81% 0.096 246.9)
-
Step 400
400 (this color)
#40A7FB
oklch(70.7% 0.155 247.1)
-
Step 500
500
#008FE7
oklch(63.2% 0.166 246.8)
-
Step 600
600
#0078C3
oklch(55.7% 0.146 246.8)
-
Step 700
700
#0064A5
oklch(49% 0.13 247.2)
-
Step 800
800
#005289
oklch(42.7% 0.113 247.3)
-
Step 900
900
#004473
oklch(37.7% 0.1 247.4)
-
Step 950
950
#002847
oklch(27% 0.072 247.4)
#40A7FB 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) | #80ABFF | 0.059 |
| Deuteranopia (no green cones) | #6599F9 | 0.043 |
| Tritanopia (no blue cones) | #00BBC5 | 0.112 |
| Achromatopsia (no color) | #A1A1A1 | 0.155 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40A7FB
#40A7FB
oklch(70.7% 0.155 247.1)
- #DF8A08
#DF8A08
oklch(70.6% 0.155 66.9)
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 #40A7FB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Chefchaouen Blue #4895EF ΔE 0.048
- Cornflower Blue #6495ED ΔE 0.051
- Deep Sky Blue #00BFFF ΔE 0.064
- Dodger Blue #1E90FF ΔE 0.068
- Dark Sky Blue #448EE4 ΔE 0.069
- Periwinkle Blue #8F99FB ΔE 0.080
- Soft Blue #6488EA ΔE 0.081
- Carolina Blue #8AB8FE ΔE 0.086
Use #40A7FB 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.