#40A7FA

Closest named color: Chefchaouen Blue (#4895EF). oklch(70.7% 0.154 246.8), rgb(64, 167, 250).

Aa

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

About this color

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

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

Values

HEX#40A7FA
RGBrgb(64, 167, 250)
HSLhsl(207, 95%, 62%)
OKLCHoklch(70.7% 0.154 246.8)

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 #40A7FA 2.58:1 Fails Lc -55.2 Large or bold text, headings
Black text on #40A7FA 8.12:1 AAA Lc 53.9 Large or bold text, headings
#40A7FA text on white 2.58:1 Fails Lc 50.1 Large or bold text, headings
#40A7FA text on black 8.12:1 AAA Lc -51.8 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

    #DCECFC

    oklch(93.6% 0.028 248.1)

  3. Step 200

    200

    #BEDDFB

    oklch(88.5% 0.053 247.6)

  4. Step 300

    300

    #8DC7FC

    oklch(81% 0.096 246.9)

  5. Step 400

    400 (this color)

    #40A7FA

    oklch(70.7% 0.154 246.8)

  6. Step 500

    500

    #008FE7

    oklch(63.2% 0.166 246.8)

  7. Step 600

    600

    #0078C3

    oklch(55.7% 0.146 246.8)

  8. Step 700

    700

    #0065A5

    oklch(49.2% 0.128 246.7)

  9. Step 800

    800

    #005288

    oklch(42.7% 0.112 246.9)

  10. Step 900

    900

    #004472

    oklch(37.6% 0.099 246.8)

  11. Step 950

    950

    #002847

    oklch(27% 0.072 247.4)

Export this scale for Tailwind in the Tailwind colors tool

#40A7FA 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)#81AAFE0.060
Deuteranopia (no green cones)#6699F80.043
Tritanopia (no blue cones)#00BBC50.111
Achromatopsia (no color)#A1A1A10.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A7FA

    #40A7FA

    oklch(70.7% 0.154 246.8)

  • #DF8A0E

    #DF8A0E

    oklch(70.6% 0.154 66.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A7FA

    #40A7FA

    oklch(70.7% 0.154 246.8)

  • #00B3D3

    #00B3D3

    oklch(70.7% 0.126 216.7)

  • #8995FE

    #8995FE

    oklch(70.6% 0.153 276.8)

Open the analogous palette in the generator

Split complementary

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

  • #40A7FA

    #40A7FA

    oklch(70.7% 0.154 246.8)

  • #F07958

    #F07958

    oklch(70.7% 0.154 36.4)

  • #BB9F00

    #BB9F00

    oklch(70.6% 0.145 96.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A7FA

    #40A7FA

    oklch(70.7% 0.154 246.8)

  • #EE7390

    #EE7390

    oklch(70.7% 0.154 7)

  • #87B13A

    #87B13A

    oklch(70.6% 0.153 126.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A7FA

    #40A7FA

    oklch(70.7% 0.154 246.8)

  • #DB78C3

    #DB78C3

    oklch(70.7% 0.153 336.9)

  • #DF8A0E

    #DF8A0E

    oklch(70.6% 0.154 66.6)

  • #31BC78

    #31BC78

    oklch(70.6% 0.154 156.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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