#4072E7

Closest named color: Royal Blue (#4169E1). oklch(58.2% 0.186 264.1), rgb(64, 114, 231).

Aa

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

About this color

#4072E7 is a medium-dark, vivid blue. In OKLCH its lightness is 58%, its chroma 0.186 and its hue 264°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.023 away. Black text reads best on it, at 4.77:1.

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.186)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.77:1
White text4.39:1

Values

HEX#4072E7
RGBrgb(64, 114, 231)
HSLhsl(222, 78%, 58%)
OKLCHoklch(58.2% 0.186 264.1)

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 #4072E7 4.39:1 AA large text Lc -75.5 Fine for body text
Black text on #4072E7 4.77:1 AA Lc 34.1 Non-text elements, placeholder text
#4072E7 text on white 4.39:1 AA large text Lc 70.0 Content text, not long reading
#4072E7 text on black 4.77:1 AA Lc -31.6 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 600.

  1. Step 50

    50

    #F2F6FD

    oklch(97.2% 0.01 261.8)

  2. Step 100

    100

    #E2EAFB

    oklch(93.6% 0.025 265.6)

  3. Step 200

    200

    #CADAF9

    oklch(88.6% 0.046 263.7)

  4. Step 300

    300

    #A5C1F7

    oklch(80.9% 0.083 263.3)

  5. Step 400

    400

    #769EF4

    oklch(70.7% 0.134 264.3)

  6. Step 500

    500

    #5383F0

    oklch(63.1% 0.172 264.2)

  7. Step 600

    600 (this color)

    #4072E7

    oklch(58.2% 0.186 264.1)

  8. Step 700

    700

    #2C57C1

    oklch(49% 0.173 264.3)

  9. Step 800

    800

    #25489C

    oklch(42.7% 0.143 264.2)

  10. Step 900

    900

    #223D7C

    oklch(37.6% 0.112 264.3)

  11. Step 950

    950

    #142449

    oklch(26.9% 0.072 264.5)

Export this scale for Tailwind in the Tailwind colors tool

#4072E7 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)#2880EB0.036
Deuteranopia (no green cones)#0071E50.032
Tritanopia (no blue cones)#008EA20.147
Achromatopsia (no color)#7878780.186

Harmonies

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

Complementary

The opposite hue (180°).

  • #4072E7

    #4072E7

    oklch(58.2% 0.186 264.1)

  • #9C7300

    #9C7300

    oklch(58.1% 0.119 83.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4072E7

    #4072E7

    oklch(58.2% 0.186 264.1)

  • #0085B7

    #0085B7

    oklch(58.1% 0.121 233.9)

  • #845DDC

    #845DDC

    oklch(58.2% 0.186 294)

Open the analogous palette in the generator

Split complementary

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

  • #4072E7

    #4072E7

    oklch(58.2% 0.186 264.1)

  • #BB5E00

    #BB5E00

    oklch(58.3% 0.146 54.1)

  • #7A8300

    #7A8300

    oklch(58.2% 0.131 114.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4072E7

    #4072E7

    oklch(58.2% 0.186 264.1)

  • #D23D40

    #D23D40

    oklch(58.1% 0.186 24.1)

  • #089520

    #089520

    oklch(58.2% 0.186 144)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4072E7

    #4072E7

    oklch(58.2% 0.186 264.1)

  • #C83D82

    #C83D82

    oklch(58.1% 0.186 354)

  • #9C7300

    #9C7300

    oklch(58.1% 0.119 83.6)

  • #009076

    #009076

    oklch(58.3% 0.111 173.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4072E7 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.