#40A8FD

Closest named color: Chefchaouen Blue (#4895EF). oklch(71.1% 0.156 247.2), rgb(64, 168, 253).

Aa

Black text reads best on this color (8.23:1).

About this color

#40A8FD is a medium-light, vivid blue. In OKLCH its lightness is 71%, its chroma 0.156 and its hue 247°. Its hue sits on the cool side of the wheel. The nearest named color is Chefchaouen Blue (#4895EF), ΔE 0.051 away. Black text reads best on it, at 8.23:1.

Hue familyBlues
Lightnessmedium-light (71%)
Chromavivid (0.156)
Temperaturecool
Nearest nameChefchaouen Blue (#4895EF)
Black text8.23:1
White text2.54:1

Values

HEX#40A8FD
RGBrgb(64, 168, 253)
HSLhsl(207, 98%, 62%)
OKLCHoklch(71.1% 0.156 247.2)

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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #40A8FD 2.54:1 Fails Lc -54.6 Large or bold text, headings
Black text on #40A8FD 8.23:1 AAA Lc 54.5 Large or bold text, headings
#40A8FD text on white 2.54:1 Fails Lc 49.5 Large or bold text, headings
#40A8FD text on black 8.23:1 AAA Lc -52.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.

  1. Step 50

    50

    #EFF6FE

    oklch(97% 0.013 251.6)

  2. Step 100

    100

    #DBECFC

    oklch(93.5% 0.028 246.5)

  3. Step 200

    200

    #BDDDFC

    oklch(88.4% 0.055 247.6)

  4. Step 300

    300

    #8CC7FD

    oklch(80.9% 0.098 246.9)

  5. Step 400

    400 (this color)

    #40A8FD

    oklch(71.1% 0.156 247.2)

  6. Step 500

    500

    #008EE8

    oklch(63% 0.168 247.5)

  7. Step 600

    600

    #0078C4

    oklch(55.7% 0.147 247.1)

  8. Step 700

    700

    #0064A5

    oklch(49% 0.13 247.2)

  9. Step 800

    800

    #005289

    oklch(42.7% 0.113 247.3)

  10. Step 900

    900

    #004473

    oklch(37.7% 0.1 247.4)

  11. Step 950

    950

    #002847

    oklch(27% 0.072 247.4)

Export this scale for Tailwind in the Tailwind colors tool

#40A8FD 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.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#81ACFF0.060
Deuteranopia (no green cones)#669AFB0.043
Tritanopia (no blue cones)#00BCC70.112
Achromatopsia (no color)#A2A2A20.156

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #40A8FD

    #40A8FD

    oklch(71.1% 0.156 247.2)

  • #E18B03

    #E18B03

    oklch(71% 0.156 67)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A8FD

    #40A8FD

    oklch(71.1% 0.156 247.2)

  • #00B4D5

    #00B4D5

    oklch(71% 0.127 217.2)

  • #8B96FF

    #8B96FF

    oklch(71% 0.153 277.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #40A8FD

    #40A8FD

    oklch(71.1% 0.156 247.2)

  • #F27A57

    #F27A57

    oklch(71.1% 0.156 37.1)

  • #BBA100

    #BBA100

    oklch(71.1% 0.147 97.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A8FD

    #40A8FD

    oklch(71.1% 0.156 247.2)

  • #F17390

    #F17390

    oklch(71.1% 0.157 7.5)

  • #87B339

    #87B339

    oklch(71.1% 0.156 127.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A8FD

    #40A8FD

    oklch(71.1% 0.156 247.2)

  • #DE78C5

    #DE78C5

    oklch(71.1% 0.157 337.1)

  • #E18B03

    #E18B03

    oklch(71% 0.156 67)

  • #2CBE7A

    #2CBE7A

    oklch(71.1% 0.156 157.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #40A8FD, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #40A8FD 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.