#40A2FE

Closest named color: Chefchaouen Blue (#4895EF). oklch(69.8% 0.163 250.2), rgb(64, 162, 254).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-light (70%)
Chromavivid (0.163)
Temperaturecool
Nearest nameChefchaouen Blue (#4895EF)
Black text7.81:1
White text2.68:1

Values

HEX#40A2FE
RGBrgb(64, 162, 254)
HSLhsl(209, 99%, 62%)
OKLCHoklch(69.8% 0.163 250.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 #40A2FE 2.68:1 Fails Lc -57.0 Large or bold text, headings
Black text on #40A2FE 7.81:1 AAA Lc 52.3 Large or bold text, headings
#40A2FE text on white 2.68:1 Fails Lc 51.8 Large or bold text, headings
#40A2FE text on black 7.81:1 AAA Lc -50.1 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

    #EFF6FF

    oklch(97% 0.014 254.6)

  2. Step 100

    100

    #DCECFD

    oklch(93.6% 0.029 249.8)

  3. Step 200

    200

    #BEDDFE

    oklch(88.6% 0.056 250.1)

  4. Step 300

    300

    #8FC6FF

    oklch(81% 0.099 250)

  5. Step 400

    400 (this color)

    #40A2FE

    oklch(69.8% 0.163 250.2)

  6. Step 500

    500

    #008CF0

    oklch(63.1% 0.179 250.1)

  7. Step 600

    600

    #0075CB

    oklch(55.5% 0.159 250.4)

  8. Step 700

    700

    #0063AC

    oklch(49.2% 0.139 250)

  9. Step 800

    800

    #00508E

    oklch(42.6% 0.122 250.5)

  10. Step 900

    900

    #004378

    oklch(37.8% 0.108 250.3)

  11. Step 950

    950

    #00274A

    oklch(26.9% 0.077 250.5)

Export this scale for Tailwind in the Tailwind colors tool

#40A2FE 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)#77A7FF0.051
Deuteranopia (no green cones)#5B96FC0.034
Tritanopia (no blue cones)#00B8C40.121
Achromatopsia (no color)#9E9E9E0.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A2FE

    #40A2FE

    oklch(69.8% 0.163 250.2)

  • #D88A00

    #D88A00

    oklch(69.7% 0.151 70)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A2FE

    #40A2FE

    oklch(69.8% 0.163 250.2)

  • #00AFD4

    #00AFD4

    oklch(69.8% 0.127 220.1)

  • #8C8FFF

    #8C8FFF

    oklch(69.8% 0.162 280.2)

Open the analogous palette in the generator

Split complementary

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

  • #40A2FE

    #40A2FE

    oklch(69.8% 0.163 250.2)

  • #F07548

    #F07548

    oklch(69.9% 0.163 40.1)

  • #B39F00

    #B39F00

    oklch(69.8% 0.145 100.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A2FE

    #40A2FE

    oklch(69.8% 0.163 250.2)

  • #F06D86

    #F06D86

    oklch(69.9% 0.162 10.4)

  • #7BB135

    #7BB135

    oklch(69.8% 0.163 130.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A2FE

    #40A2FE

    oklch(69.8% 0.163 250.2)

  • #DE71BD

    #DE71BD

    oklch(69.8% 0.162 340.1)

  • #D88A00

    #D88A00

    oklch(69.7% 0.151 70)

  • #00BB7B

    #00BB7B

    oklch(69.9% 0.158 160)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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