#4070D8

Closest named color: Royal Blue (#4169E1). oklch(56.7% 0.168 263.4), rgb(64, 112, 216).

Aa

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

About this color

#4070D8 is a medium-dark, vivid blue. In OKLCH its lightness is 57%, its chroma 0.168 and its hue 263°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.023 away. White text reads best on it, at 4.63:1.

Hue familyBlues
Lightnessmedium-dark (57%)
Chromavivid (0.168)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.52:1
White text4.63:1

Values

HEX#4070D8
RGBrgb(64, 112, 216)
HSLhsl(221, 66%, 55%)
OKLCHoklch(56.7% 0.168 263.4)

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 #4070D8 4.63:1 AA Lc -77.3 Fine for body text
Black text on #4070D8 4.52:1 AA Lc 32.2 Non-text elements, placeholder text
#4070D8 text on white 4.63:1 AA Lc 71.8 Content text, not long reading
#4070D8 text on black 4.52:1 AA Lc -29.8 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

    #F2F6FD

    oklch(97.2% 0.01 261.8)

  2. Step 100

    100

    #E2EAF9

    oklch(93.5% 0.022 263.2)

  3. Step 200

    200

    #CBDAF6

    oklch(88.6% 0.042 263)

  4. Step 300

    300

    #A7C1F2

    oklch(80.9% 0.075 262.9)

  5. Step 400

    400

    #799FEC

    oklch(70.7% 0.121 263.6)

  6. Step 500

    500

    #5785E6

    oklch(63.1% 0.155 263.5)

  7. Step 600

    600 (this color)

    #4070D8

    oklch(56.7% 0.168 263.4)

  8. Step 700

    700

    #2F5AB8

    oklch(49.1% 0.157 263.3)

  9. Step 800

    800

    #284A95

    oklch(42.7% 0.13 263.5)

  10. Step 900

    900

    #243F77

    oklch(37.8% 0.101 263.1)

  11. Step 950

    950

    #162545

    oklch(27% 0.063 263.8)

Export this scale for Tailwind in the Tailwind colors tool

#4070D8 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)#377CDC0.031
Deuteranopia (no green cones)#066ED60.033
Tritanopia (no blue cones)#00889A0.133
Achromatopsia (no color)#7575750.168

Harmonies

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

Complementary

The opposite hue (180°).

  • #4070D8

    #4070D8

    oklch(56.7% 0.168 263.4)

  • #976F00

    #976F00

    oklch(56.7% 0.116 83.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4070D8

    #4070D8

    oklch(56.7% 0.168 263.4)

  • #0081B0

    #0081B0

    oklch(56.8% 0.117 233)

  • #7D5DCE

    #7D5DCE

    oklch(56.6% 0.168 293.4)

Open the analogous palette in the generator

Split complementary

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

  • #4070D8

    #4070D8

    oklch(56.7% 0.168 263.4)

  • #B55A00

    #B55A00

    oklch(56.8% 0.143 53.6)

  • #777E00

    #777E00

    oklch(56.8% 0.127 113.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4070D8

    #4070D8

    oklch(56.7% 0.168 263.4)

  • #C64244

    #C64244

    oklch(56.7% 0.168 23.4)

  • #248E28

    #248E28

    oklch(56.7% 0.168 143.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4070D8

    #4070D8

    oklch(56.7% 0.168 263.4)

  • #BD427E

    #BD427E

    oklch(56.8% 0.168 353.6)

  • #976F00

    #976F00

    oklch(56.7% 0.116 83.5)

  • #008B71

    #008B71

    oklch(56.8% 0.109 173.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4070D8 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.