#4062F2

Closest named color: Neon Blue (#4361EE). oklch(56% 0.219 268.2), rgb(64, 98, 242).

Aa

White text reads best on this color (4.94:1).

About this color

#4062F2 is a medium-dark, vivid blue. In OKLCH its lightness is 56%, its chroma 0.219 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Neon Blue (#4361EE), ΔE 0.007 away. White text reads best on it, at 4.94:1.

Hue familyBlues
Lightnessmedium-dark (56%)
Chromavivid (0.219)
Temperaturecool
Nearest nameNeon Blue (#4361EE)
Black text4.24:1
White text4.94:1

Values

HEX#4062F2
RGBrgb(64, 98, 242)
HSLhsl(229, 87%, 60%)
OKLCHoklch(56% 0.219 268.2)

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 #4062F2 4.94:1 AA Lc -79.0 Fine for body text
Black text on #4062F2 4.24:1 AA large text Lc 30.5 Non-text elements, placeholder text
#4062F2 text on white 4.94:1 AA Lc 73.6 Content text, not long reading
#4062F2 text on black 4.24:1 AA large text Lc -28.1 Dividers and decoration only

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

  1. Step 50

    50

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E2EAFE

    oklch(93.7% 0.028 268.4)

  3. Step 200

    200

    #CAD9FE

    oklch(88.6% 0.054 267.9)

  4. Step 300

    300

    #A6BFFF

    oklch(80.9% 0.095 267.8)

  5. Step 400

    400

    #789BFF

    oklch(70.8% 0.152 267.9)

  6. Step 500

    500

    #577DFF

    oklch(63.1% 0.197 268)

  7. Step 600

    600 (this color)

    #4062F2

    oklch(56% 0.219 268.2)

  8. Step 700

    700

    #324FD2

    oklch(49.2% 0.204 268.1)

  9. Step 800

    800

    #2942A9

    oklch(42.7% 0.168 268)

  10. Step 900

    900

    #253986

    oklch(37.7% 0.131 268.4)

  11. Step 950

    950

    #15224E

    oklch(26.9% 0.083 268)

Export this scale for Tailwind in the Tailwind colors tool

#4062F2 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)#0079F70.056
Deuteranopia (no green cones)#0068EF0.034
Tritanopia (no blue cones)#0087A10.173
Achromatopsia (no color)#7070700.219

Harmonies

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

Complementary

The opposite hue (180°).

  • #4062F2

    #4062F2

    oklch(56% 0.219 268.2)

  • #906F00

    #906F00

    oklch(55.9% 0.114 87.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4062F2

    #4062F2

    oklch(56% 0.219 268.2)

  • #007DB4

    #007DB4

    oklch(56% 0.124 238)

  • #8848E0

    #8848E0

    oklch(55.9% 0.219 298.3)

Open the analogous palette in the generator

Split complementary

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

  • #4062F2

    #4062F2

    oklch(56% 0.219 268.2)

  • #AC5D00

    #AC5D00

    oklch(56% 0.133 58.6)

  • #6E7E00

    #6E7E00

    oklch(56% 0.131 118.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4062F2

    #4062F2

    oklch(56% 0.219 268.2)

  • #D71818

    #D71818

    oklch(56% 0.219 28.2)

  • #008C37

    #008C37

    oklch(55.8% 0.161 148.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4062F2

    #4062F2

    oklch(56% 0.219 268.2)

  • #CE1573

    #CE1573

    oklch(55.9% 0.219 358.3)

  • #906F00

    #906F00

    oklch(55.9% 0.114 87.9)

  • #008874

    #008874

    oklch(56.1% 0.104 177.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4062F2 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.