#40A4FC

Closest named color: Chefchaouen Blue (#4895EF). oklch(70.1% 0.159 248.8), rgb(64, 164, 252).

Aa

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

About this color

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

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

Values

HEX#40A4FC
RGBrgb(64, 164, 252)
HSLhsl(208, 97%, 62%)
OKLCHoklch(70.1% 0.159 248.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 #40A4FC 2.64:1 Fails Lc -56.3 Large or bold text, headings
Black text on #40A4FC 7.93:1 AAA Lc 52.9 Large or bold text, headings
#40A4FC text on white 2.64:1 Fails Lc 51.1 Large or bold text, headings
#40A4FC text on black 7.93:1 AAA Lc -50.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

    #DCECFD

    oklch(93.6% 0.029 249.8)

  3. Step 200

    200

    #BEDDFD

    oklch(88.5% 0.055 249.3)

  4. Step 300

    300

    #8EC6FE

    oklch(80.9% 0.099 249.1)

  5. Step 400

    400 (this color)

    #40A4FC

    oklch(70.1% 0.159 248.8)

  6. Step 500

    500

    #008DEC

    oklch(63.1% 0.173 248.9)

  7. Step 600

    600

    #0076C7

    oklch(55.5% 0.153 248.9)

  8. Step 700

    700

    #0063A9

    oklch(49% 0.136 249.1)

  9. Step 800

    800

    #00518B

    oklch(42.6% 0.117 248.8)

  10. Step 900

    900

    #004475

    oklch(37.8% 0.103 248.3)

  11. Step 950

    950

    #002849

    oklch(27.1% 0.074 248.8)

Export this scale for Tailwind in the Tailwind colors tool

#40A4FC 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)#7BA9FF0.055
Deuteranopia (no green cones)#6097FA0.038
Tritanopia (no blue cones)#00B9C40.116
Achromatopsia (no color)#9F9F9F0.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A4FC

    #40A4FC

    oklch(70.1% 0.159 248.8)

  • #DB8A00

    #DB8A00

    oklch(70.1% 0.153 68.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A4FC

    #40A4FC

    oklch(70.1% 0.159 248.8)

  • #00B1D4

    #00B1D4

    oklch(70.2% 0.127 218.7)

  • #8B91FF

    #8B91FF

    oklch(70.1% 0.159 279.1)

Open the analogous palette in the generator

Split complementary

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

  • #40A4FC

    #40A4FC

    oklch(70.1% 0.159 248.8)

  • #EF774F

    #EF774F

    oklch(70.1% 0.158 38.9)

  • #B69F00

    #B69F00

    oklch(70.1% 0.145 98.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A4FC

    #40A4FC

    oklch(70.1% 0.159 248.8)

  • #EF6F8A

    #EF6F8A

    oklch(70.1% 0.159 8.9)

  • #80B137

    #80B137

    oklch(70.2% 0.159 128.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A4FC

    #40A4FC

    oklch(70.1% 0.159 248.8)

  • #DD74BF

    #DD74BF

    oklch(70.2% 0.158 339.1)

  • #DB8A00

    #DB8A00

    oklch(70.1% 0.153 68.9)

  • #13BC79

    #13BC79

    oklch(70.2% 0.159 158.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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