#4062B2

Closest named color: Mid Blue (#276AB3). oklch(51.2% 0.133 264.8), rgb(64, 98, 178).

Aa

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

About this color

#4062B2 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 51%, its chroma 0.133 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Mid Blue (#276AB3), ΔE 0.028 away. White text reads best on it, at 5.82:1.

Hue familyBlues
Lightnessmedium-dark (51%)
Chromamoderately saturated (0.133)
Temperaturecool
Nearest nameMid Blue (#276AB3)
Black text3.60:1
White text5.82:1

Values

HEX#4062B2
RGBrgb(64, 98, 178)
HSLhsl(222, 47%, 47%)
OKLCHoklch(51.2% 0.133 264.8)

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 #4062B2 5.82:1 AA Lc -84.1 Fine for body text
Black text on #4062B2 3.60:1 AA large text Lc 25.2 Dividers and decoration only
#4062B2 text on white 5.82:1 AA Lc 78.9 Fine for body text
#4062B2 text on black 3.60:1 AA large text Lc -22.9 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 700.

  1. Step 50

    50

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F2

    oklch(88.5% 0.036 266.7)

  4. Step 300

    300

    #ACC1EB

    oklch(80.9% 0.064 264.1)

  5. Step 400

    400

    #819FE1

    oklch(70.6% 0.103 265.1)

  6. Step 500

    500

    #6286D9

    oklch(63.1% 0.132 265.1)

  7. Step 600

    600

    #496EC6

    oklch(55.5% 0.143 265)

  8. Step 700

    700 (this color)

    #4062B2

    oklch(51.2% 0.133 264.8)

  9. Step 800

    800

    #304B8B

    oklch(42.6% 0.111 264.9)

  10. Step 900

    900

    #2B3F6F

    oklch(37.6% 0.086 265.4)

  11. Step 950

    950

    #192541

    oklch(26.9% 0.055 265.3)

Export this scale for Tailwind in the Tailwind colors tool

#4062B2 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)#3C6BB50.024
Deuteranopia (no green cones)#2960B00.024
Tritanopia (no blue cones)#0074810.112
Achromatopsia (no color)#6565650.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #4062B2

    #4062B2

    oklch(51.2% 0.133 264.8)

  • #826100

    #826100

    oklch(51.2% 0.105 85.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4062B2

    #4062B2

    oklch(51.2% 0.133 264.8)

  • #006F9B

    #006F9B

    oklch(51.1% 0.108 234.8)

  • #6D54AA

    #6D54AA

    oklch(51.2% 0.133 294.7)

Open the analogous palette in the generator

Split complementary

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

  • #4062B2

    #4062B2

    oklch(51.2% 0.133 264.8)

  • #9C4E00

    #9C4E00

    oklch(51.1% 0.127 54.5)

  • #656D00

    #656D00

    oklch(51% 0.115 114.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4062B2

    #4062B2

    oklch(51.2% 0.133 264.8)

  • #A5423E

    #A5423E

    oklch(51.2% 0.132 25.2)

  • #2A7931

    #2A7931

    oklch(51.1% 0.132 144.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4062B2

    #4062B2

    oklch(51.2% 0.133 264.8)

  • #9E416B

    #9E416B

    oklch(51.2% 0.132 354.6)

  • #826100

    #826100

    oklch(51.2% 0.105 85.3)

  • #007863

    #007863

    oklch(51.1% 0.097 174.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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