#40A4F2

Closest named color: Chefchaouen Blue (#4895EF). oklch(69.6% 0.147 245.9), rgb(64, 164, 242).

Aa

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

About this color

#40A4F2 is a medium-light, vivid blue. In OKLCH its lightness is 70%, its chroma 0.147 and its hue 246°. 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.81:1.

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

Values

HEX#40A4F2
RGBrgb(64, 164, 242)
HSLhsl(206, 87%, 60%)
OKLCHoklch(69.6% 0.147 245.9)

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 #40A4F2 2.68:1 Fails Lc -57.0 Large or bold text, headings
Black text on #40A4F2 7.81:1 AAA Lc 52.2 Large or bold text, headings
#40A4F2 text on white 2.68:1 Fails Lc 51.8 Large or bold text, headings
#40A4F2 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

    #EFF6FD

    oklch(97% 0.012 248)

  2. Step 100

    100

    #DCECFB

    oklch(93.6% 0.027 246.3)

  3. Step 200

    200

    #BEDDF9

    oklch(88.4% 0.051 245.7)

  4. Step 300

    300

    #8FC7F9

    oklch(80.9% 0.092 246.2)

  5. Step 400

    400 (this color)

    #40A4F2

    oklch(69.6% 0.147 245.9)

  6. Step 500

    500

    #008FE4

    oklch(63% 0.162 246)

  7. Step 600

    600

    #0078C1

    oklch(55.5% 0.143 246.2)

  8. Step 700

    700

    #0065A3

    oklch(49.1% 0.126 245.9)

  9. Step 800

    800

    #005387

    oklch(42.8% 0.11 245.8)

  10. Step 900

    900

    #004571

    oklch(37.8% 0.096 245.5)

  11. Step 950

    950

    #002846

    oklch(26.9% 0.07 246.6)

Export this scale for Tailwind in the Tailwind colors tool

#40A4F2 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)#80A7F50.060
Deuteranopia (no green cones)#6796F10.045
Tritanopia (no blue cones)#00B7C00.106
Achromatopsia (no color)#9E9E9E0.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #40A4F2

    #40A4F2

    oklch(69.6% 0.147 245.9)

  • #D9881D

    #D9881D

    oklch(69.6% 0.147 66.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A4F2

    #40A4F2

    oklch(69.6% 0.147 245.9)

  • #00AFCE

    #00AFCE

    oklch(69.5% 0.124 216.4)

  • #8593F7

    #8593F7

    oklch(69.6% 0.147 275.9)

Open the analogous palette in the generator

Split complementary

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

  • #40A4F2

    #40A4F2

    oklch(69.6% 0.147 245.9)

  • #E9785A

    #E9785A

    oklch(69.6% 0.147 35.9)

  • #B89B00

    #B89B00

    oklch(69.5% 0.143 95.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A4F2

    #40A4F2

    oklch(69.6% 0.147 245.9)

  • #E7728F

    #E7728F

    oklch(69.6% 0.147 6)

  • #87AD3B

    #87AD3B

    oklch(69.7% 0.147 125.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A4F2

    #40A4F2

    oklch(69.6% 0.147 245.9)

  • #D577C0

    #D577C0

    oklch(69.7% 0.147 335.9)

  • #D9881D

    #D9881D

    oklch(69.6% 0.147 66.4)

  • #3AB775

    #3AB775

    oklch(69.5% 0.147 155.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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