#4051B6

Closest named color: Blue With A Hint Of Purple (#533CC6). oklch(48% 0.16 271.8), rgb(64, 81, 182).

Aa

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

About this color

#4051B6 is a medium-dark, vivid blue. In OKLCH its lightness is 48%, its chroma 0.160 and its hue 272°. Its hue sits on the cool side of the wheel. The nearest named color is Blue With A Hint Of Purple (#533CC6), ΔE 0.056 away. White text reads best on it, at 6.83:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromavivid (0.160)
Temperaturecool
Nearest nameBlue With A Hint Of Purple (#533CC6)
Black text3.07:1
White text6.83:1

Values

HEX#4051B6
RGBrgb(64, 81, 182)
HSLhsl(231, 48%, 48%)
OKLCHoklch(48% 0.16 271.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 #4051B6 6.83:1 AA Lc -88.3 Fine for body text
Black text on #4051B6 3.07:1 AA large text Lc 20.8 Dividers and decoration only
#4051B6 text on white 6.83:1 AA Lc 83.2 Fine for body text
#4051B6 text on black 3.07:1 AA large text Lc -18.7 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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E4E9F9

    oklch(93.5% 0.022 272.1)

  3. Step 200

    200

    #CFD8F6

    oklch(88.5% 0.042 272.3)

  4. Step 300

    300

    #AFBEF3

    oklch(80.9% 0.077 272.3)

  5. Step 400

    400

    #859BEE

    oklch(70.7% 0.124 271.6)

  6. Step 500

    500

    #6980E8

    oklch(63.2% 0.158 271.8)

  7. Step 600

    600

    #5267D6

    oklch(55.7% 0.171 271.7)

  8. Step 700

    700 (this color)

    #4051B6

    oklch(48% 0.16 271.8)

  9. Step 800

    800

    #374696

    oklch(42.7% 0.132 271.7)

  10. Step 900

    900

    #2F3B78

    oklch(37.6% 0.104 272.1)

  11. Step 950

    950

    #1B2346

    oklch(26.9% 0.066 271.6)

Export this scale for Tailwind in the Tailwind colors tool

#4051B6 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)#0060B90.050
Deuteranopia (no green cones)#0055B40.044
Tritanopia (no blue cones)#00697B0.134
Achromatopsia (no color)#5B5B5B0.160

Harmonies

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

Complementary

The opposite hue (180°).

  • #4051B6

    #4051B6

    oklch(48% 0.16 271.8)

  • #725B00

    #725B00

    oklch(48.1% 0.098 91.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4051B6

    #4051B6

    oklch(48% 0.16 271.8)

  • #006397

    #006397

    oklch(47.9% 0.113 241.9)

  • #6F40A7

    #6F40A7

    oklch(47.9% 0.16 301.7)

Open the analogous palette in the generator

Split complementary

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

  • #4051B6

    #4051B6

    oklch(48% 0.16 271.8)

  • #894C00

    #894C00

    oklch(47.9% 0.111 61.3)

  • #536700

    #536700

    oklch(48% 0.116 121.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4051B6

    #4051B6

    oklch(48% 0.16 271.8)

  • #A42C19

    #A42C19

    oklch(47.9% 0.159 31.8)

  • #007137

    #007137

    oklch(48% 0.127 151.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4051B6

    #4051B6

    oklch(48% 0.16 271.8)

  • #A02757

    #A02757

    oklch(47.9% 0.161 1.5)

  • #725B00

    #725B00

    oklch(48.1% 0.098 91.6)

  • #006D61

    #006D61

    oklch(48% 0.086 181.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4051B6 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.