#407AE2

Closest named color: Royal Blue (#4169E1). oklch(59.5% 0.17 261), rgb(64, 122, 226).

Aa

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

About this color

#407AE2 is a medium-dark, vivid blue. In OKLCH its lightness is 59%, its chroma 0.170 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.043 away. Black text reads best on it, at 5.10:1.

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.170)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text5.10:1
White text4.11:1

Values

HEX#407AE2
RGBrgb(64, 122, 226)
HSLhsl(219, 74%, 57%)
OKLCHoklch(59.5% 0.17 261)

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 #407AE2 4.11:1 AA large text Lc -73.4 Content text, not long reading
Black text on #407AE2 5.10:1 AA Lc 36.2 Non-text elements, placeholder text
#407AE2 text on white 4.11:1 AA large text Lc 67.9 Content text, not long reading
#407AE2 text on black 5.10:1 AA Lc -33.7 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #E1EAFA

    oklch(93.5% 0.024 262.1)

  3. Step 200

    200

    #C8DAF8

    oklch(88.4% 0.046 260.7)

  4. Step 300

    300

    #A3C2F7

    oklch(81% 0.083 261)

  5. Step 400

    400

    #70A0F3

    oklch(70.7% 0.133 260.8)

  6. Step 500

    500 (this color)

    #407AE2

    oklch(59.5% 0.17 261)

  7. Step 600

    600

    #2D6CDD

    oklch(55.5% 0.185 261)

  8. Step 700

    700

    #205AC0

    oklch(49.2% 0.171 260.8)

  9. Step 800

    800

    #1D4A9B

    oklch(42.7% 0.141 261)

  10. Step 900

    900

    #1D3F7B

    oklch(37.8% 0.11 260.8)

  11. Step 950

    950

    #122548

    oklch(27% 0.07 261.5)

Export this scale for Tailwind in the Tailwind colors tool

#407AE2 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)#4385E60.029
Deuteranopia (no green cones)#1E76E00.027
Tritanopia (no blue cones)#0092A30.134
Achromatopsia (no color)#7D7D7D0.170

Harmonies

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

Complementary

The opposite hue (180°).

  • #407AE2

    #407AE2

    oklch(59.5% 0.17 261)

  • #A47500

    #A47500

    oklch(59.4% 0.123 80.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #407AE2

    #407AE2

    oklch(59.5% 0.17 261)

  • #008AB9

    #008AB9

    oklch(59.4% 0.12 231.4)

  • #8267DA

    #8267DA

    oklch(59.5% 0.169 291.2)

Open the analogous palette in the generator

Split complementary

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

  • #407AE2

    #407AE2

    oklch(59.5% 0.17 261)

  • #C45D00

    #C45D00

    oklch(59.4% 0.155 51)

  • #838500

    #838500

    oklch(59.5% 0.131 110.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #407AE2

    #407AE2

    oklch(59.5% 0.17 261)

  • #D04A51

    #D04A51

    oklch(59.5% 0.169 20.9)

  • #389629

    #389629

    oklch(59.5% 0.17 141.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #407AE2

    #407AE2

    oklch(59.5% 0.17 261)

  • #C54B8B

    #C54B8B

    oklch(59.5% 0.169 350.9)

  • #A47500

    #A47500

    oklch(59.4% 0.123 80.5)

  • #009475

    #009475

    oklch(59.3% 0.116 171.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #407AE2 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.