#40A6FA

Closest named color: Chefchaouen Blue (#4895EF). oklch(70.5% 0.154 247.3), rgb(64, 166, 250).

Aa

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

About this color

#40A6FA is a medium-light, vivid blue. In OKLCH its lightness is 70%, 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.045 away. Black text reads best on it, at 8.05:1.

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

Values

HEX#40A6FA
RGBrgb(64, 166, 250)
HSLhsl(207, 95%, 62%)
OKLCHoklch(70.5% 0.154 247.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.

PairWCAG 2ResultAPCAAPCA guidance
White text on #40A6FA 2.60:1 Fails Lc -55.7 Large or bold text, headings
Black text on #40A6FA 8.05:1 AAA Lc 53.5 Large or bold text, headings
#40A6FA text on white 2.60:1 Fails Lc 50.5 Large or bold text, headings
#40A6FA text on black 8.05:1 AAA Lc -51.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

    #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)

    #40A6FA

    oklch(70.5% 0.154 247.3)

  6. Step 500

    500

    #008EE8

    oklch(63% 0.168 247.5)

  7. Step 600

    600

    #0077C4

    oklch(55.5% 0.148 247.6)

  8. Step 700

    700

    #0064A6

    oklch(49.1% 0.131 247.6)

  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

#40A6FA 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)#7FAAFE0.059
Deuteranopia (no green cones)#6598F80.043
Tritanopia (no blue cones)#00BAC40.112
Achromatopsia (no color)#A0A0A00.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A6FA

    #40A6FA

    oklch(70.5% 0.154 247.3)

  • #DE8A05

    #DE8A05

    oklch(70.5% 0.154 67.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A6FA

    #40A6FA

    oklch(70.5% 0.154 247.3)

  • #00B2D3

    #00B2D3

    oklch(70.4% 0.126 217.4)

  • #8994FE

    #8994FE

    oklch(70.4% 0.154 277.2)

Open the analogous palette in the generator

Split complementary

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

  • #40A6FA

    #40A6FA

    oklch(70.5% 0.154 247.3)

  • #EF7956

    #EF7956

    oklch(70.5% 0.154 37.3)

  • #B99F00

    #B99F00

    oklch(70.4% 0.145 97.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A6FA

    #40A6FA

    oklch(70.5% 0.154 247.3)

  • #EE728F

    #EE728F

    oklch(70.5% 0.155 7.2)

  • #85B139

    #85B139

    oklch(70.5% 0.155 127.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A6FA

    #40A6FA

    oklch(70.5% 0.154 247.3)

  • #DB77C2

    #DB77C2

    oklch(70.5% 0.154 337.3)

  • #DE8A05

    #DE8A05

    oklch(70.5% 0.154 67.5)

  • #2BBC78

    #2BBC78

    oklch(70.5% 0.155 157.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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