#40A4FA

Closest named color: Chefchaouen Blue (#4895EF). oklch(70% 0.156 248.3), rgb(64, 164, 250).

Aa

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

About this color

#40A4FA is a medium-light, vivid blue. In OKLCH its lightness is 70%, its chroma 0.156 and its hue 248°. 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.90:1.

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

Values

HEX#40A4FA
RGBrgb(64, 164, 250)
HSLhsl(208, 95%, 62%)
OKLCHoklch(70% 0.156 248.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 #40A4FA 2.65:1 Fails Lc -56.5 Large or bold text, headings
Black text on #40A4FA 7.90:1 AAA Lc 52.7 Large or bold text, headings
#40A4FA text on white 2.65:1 Fails Lc 51.3 Large or bold text, headings
#40A4FA text on black 7.90:1 AAA Lc -50.6 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

    #BEDDFC

    oklch(88.5% 0.054 248.4)

  4. Step 300

    300

    #8EC6FD

    oklch(80.8% 0.098 248.7)

  5. Step 400

    400 (this color)

    #40A4FA

    oklch(70% 0.156 248.3)

  6. Step 500

    500

    #008EEB

    oklch(63.2% 0.171 248.3)

  7. Step 600

    600

    #0077C6

    oklch(55.6% 0.15 248.2)

  8. Step 700

    700

    #0064A8

    oklch(49.2% 0.133 248.3)

  9. Step 800

    800

    #00528B

    oklch(42.9% 0.116 248.2)

  10. Step 900

    900

    #004475

    oklch(37.8% 0.103 248.3)

  11. Step 950

    950

    #002848

    oklch(27% 0.073 248.1)

Export this scale for Tailwind in the Tailwind colors tool

#40A4FA 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)#7CA8FE0.056
Deuteranopia (no green cones)#6197F80.039
Tritanopia (no blue cones)#00B9C30.115
Achromatopsia (no color)#9F9F9F0.156

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A4FA

    #40A4FA

    oklch(70% 0.156 248.3)

  • #DB8900

    #DB8900

    oklch(69.9% 0.153 68.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A4FA

    #40A4FA

    oklch(70% 0.156 248.3)

  • #00B0D3

    #00B0D3

    oklch(70% 0.126 218.8)

  • #8A92FD

    #8A92FD

    oklch(70.1% 0.155 278.3)

Open the analogous palette in the generator

Split complementary

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

  • #40A4FA

    #40A4FA

    oklch(70% 0.156 248.3)

  • #EE7751

    #EE7751

    oklch(70% 0.156 38.3)

  • #B69E00

    #B69E00

    oklch(69.9% 0.145 98.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A4FA

    #40A4FA

    oklch(70% 0.156 248.3)

  • #ED708B

    #ED708B

    oklch(70% 0.156 8.4)

  • #81B038

    #81B038

    oklch(70% 0.156 128.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A4FA

    #40A4FA

    oklch(70% 0.156 248.3)

  • #DB74BF

    #DB74BF

    oklch(69.9% 0.156 338.4)

  • #DB8900

    #DB8900

    oklch(69.9% 0.153 68.3)

  • #1FBB79

    #1FBB79

    oklch(70.1% 0.156 158.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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