#40A4F8

Closest named color: Chefchaouen Blue (#4895EF). oklch(69.9% 0.154 247.7), rgb(64, 164, 248).

Aa

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

About this color

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

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

Values

HEX#40A4F8
RGBrgb(64, 164, 248)
HSLhsl(207, 93%, 61%)
OKLCHoklch(69.9% 0.154 247.7)

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 #40A4F8 2.66:1 Fails Lc -56.6 Large or bold text, headings
Black text on #40A4F8 7.88:1 AAA Lc 52.6 Large or bold text, headings
#40A4F8 text on white 2.66:1 Fails Lc 51.4 Large or bold text, headings
#40A4F8 text on black 7.88:1 AAA Lc -50.5 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

    #8EC7FC

    oklch(81% 0.096 247.3)

  5. Step 400

    400 (this color)

    #40A4F8

    oklch(69.9% 0.154 247.7)

  6. Step 500

    500

    #008EE9

    oklch(63.1% 0.169 247.8)

  7. Step 600

    600

    #0077C5

    oklch(55.6% 0.149 247.9)

  8. Step 700

    700

    #0064A6

    oklch(49.1% 0.131 247.6)

  9. Step 800

    800

    #00528A

    oklch(42.8% 0.115 247.8)

  10. Step 900

    900

    #004474

    oklch(37.7% 0.101 247.8)

  11. Step 950

    950

    #002847

    oklch(27% 0.072 247.4)

Export this scale for Tailwind in the Tailwind colors tool

#40A4F8 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)#7DA8FC0.057
Deuteranopia (no green cones)#6397F60.040
Tritanopia (no blue cones)#00B8C20.112
Achromatopsia (no color)#9E9E9E0.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A4F8

    #40A4F8

    oklch(69.9% 0.154 247.7)

  • #DC8800

    #DC8800

    oklch(69.9% 0.154 67.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A4F8

    #40A4F8

    oklch(69.9% 0.154 247.7)

  • #00B0D1

    #00B0D1

    oklch(69.9% 0.125 217.6)

  • #8992FC

    #8992FC

    oklch(69.9% 0.154 277.9)

Open the analogous palette in the generator

Split complementary

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

  • #40A4F8

    #40A4F8

    oklch(69.9% 0.154 247.7)

  • #ED7753

    #ED7753

    oklch(69.9% 0.155 37.7)

  • #B79E00

    #B79E00

    oklch(70% 0.145 97.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A4F8

    #40A4F8

    oklch(69.9% 0.154 247.7)

  • #EC708C

    #EC708C

    oklch(69.9% 0.155 7.8)

  • #83AF39

    #83AF39

    oklch(69.9% 0.153 127.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A4F8

    #40A4F8

    oklch(69.9% 0.154 247.7)

  • #D975BF

    #D975BF

    oklch(69.8% 0.153 337.8)

  • #DC8800

    #DC8800

    oklch(69.9% 0.154 67.3)

  • #27BA78

    #27BA78

    oklch(69.9% 0.154 157.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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