#4065E2

Closest named color: Royal Blue (#4169E1). oklch(55.2% 0.195 267.2), rgb(64, 101, 226).

Aa

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

About this color

#4065E2 is a medium-dark, vivid blue. In OKLCH its lightness is 55%, its chroma 0.195 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.010 away. White text reads best on it, at 5.02:1.

Hue familyBlues
Lightnessmedium-dark (55%)
Chromavivid (0.195)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.17:1
White text5.02:1

Values

HEX#4065E2
RGBrgb(64, 101, 226)
HSLhsl(226, 74%, 57%)
OKLCHoklch(55.2% 0.195 267.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 #4065E2 5.02:1 AA Lc -79.7 Fine for body text
Black text on #4065E2 4.17:1 AA large text Lc 29.8 Dividers and decoration only
#4065E2 text on white 5.02:1 AA Lc 74.3 Content text, not long reading
#4065E2 text on black 4.17:1 AA large text Lc -27.5 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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E2EAFB

    oklch(93.6% 0.025 265.6)

  3. Step 200

    200

    #CBD9FA

    oklch(88.5% 0.048 267.2)

  4. Step 300

    300

    #A7BFFA

    oklch(80.8% 0.088 267.3)

  5. Step 400

    400

    #7A9CF8

    oklch(70.7% 0.14 267.4)

  6. Step 500

    500

    #5980F4

    oklch(63% 0.179 267.2)

  7. Step 600

    600 (this color)

    #4065E2

    oklch(55.2% 0.195 267.2)

  8. Step 700

    700

    #3354C5

    oklch(49.1% 0.18 267)

  9. Step 800

    800

    #2B45A0

    oklch(42.7% 0.151 267.5)

  10. Step 900

    900

    #263C7F

    oklch(37.8% 0.117 267)

  11. Step 950

    950

    #16234A

    oklch(26.9% 0.074 267.4)

Export this scale for Tailwind in the Tailwind colors tool

#4065E2 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)#0077E60.049
Deuteranopia (no green cones)#0068E00.034
Tritanopia (no blue cones)#00849A0.156
Achromatopsia (no color)#6F6F6F0.195

Harmonies

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

Complementary

The opposite hue (180°).

  • #4065E2

    #4065E2

    oklch(55.2% 0.195 267.2)

  • #8E6D00

    #8E6D00

    oklch(55.2% 0.113 87.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4065E2

    #4065E2

    oklch(55.2% 0.195 267.2)

  • #007BB0

    #007BB0

    oklch(55.3% 0.121 237.4)

  • #824FD3

    #824FD3

    oklch(55.3% 0.194 297.4)

Open the analogous palette in the generator

Split complementary

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

  • #4065E2

    #4065E2

    oklch(55.2% 0.195 267.2)

  • #AB5A00

    #AB5A00

    oklch(55.3% 0.134 57)

  • #6D7B00

    #6D7B00

    oklch(55.2% 0.128 117.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4065E2

    #4065E2

    oklch(55.2% 0.195 267.2)

  • #CB2D2A

    #CB2D2A

    oklch(55.2% 0.195 27.2)

  • #008A31

    #008A31

    oklch(55.2% 0.163 147.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4065E2

    #4065E2

    oklch(55.2% 0.195 267.2)

  • #C32C73

    #C32C73

    oklch(55.3% 0.194 357.4)

  • #8E6D00

    #8E6D00

    oklch(55.2% 0.113 87.6)

  • #008571

    #008571

    oklch(55.1% 0.102 177.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4065E2 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.