#4054AC

Closest named color: Denim Blue (#3B5B92). oklch(47.8% 0.142 270.6), rgb(64, 84, 172).

Aa

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

About this color

#4054AC is a medium-dark, vivid blue. In OKLCH its lightness is 48%, its chroma 0.142 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Denim Blue (#3B5B92), ΔE 0.050 away. White text reads best on it, at 6.81:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromavivid (0.142)
Temperaturecool
Nearest nameDenim Blue (#3B5B92)
Black text3.08:1
White text6.81:1

Values

HEX#4054AC
RGBrgb(64, 84, 172)
HSLhsl(229, 46%, 46%)
OKLCHoklch(47.8% 0.142 270.6)

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 #4054AC 6.81:1 AA Lc -88.2 Fine for body text
Black text on #4054AC 3.08:1 AA large text Lc 20.8 Dividers and decoration only
#4054AC text on white 6.81:1 AA Lc 83.2 Fine for body text
#4054AC text on black 3.08: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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E5EAF8

    oklch(93.7% 0.02 270.2)

  3. Step 200

    200

    #CFD8F3

    oklch(88.4% 0.038 271)

  4. Step 300

    300

    #B0BFEE

    oklch(80.9% 0.069 271)

  5. Step 400

    400

    #879DE6

    oklch(70.8% 0.11 270.6)

  6. Step 500

    500

    #6A82DE

    oklch(63% 0.141 270.9)

  7. Step 600

    600

    #536ACC

    oklch(55.6% 0.153 270.8)

  8. Step 700

    700 (this color)

    #4054AC

    oklch(47.8% 0.142 270.6)

  9. Step 800

    800

    #37488F

    oklch(42.6% 0.119 270.5)

  10. Step 900

    900

    #2F3D72

    oklch(37.6% 0.092 270.3)

  11. Step 950

    950

    #1C2443

    oklch(27% 0.059 271.1)

Export this scale for Tailwind in the Tailwind colors tool

#4054AC 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)#2360AF0.038
Deuteranopia (no green cones)#0456AA0.043
Tritanopia (no blue cones)#0068780.120
Achromatopsia (no color)#5B5B5B0.142

Harmonies

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

Complementary

The opposite hue (180°).

  • #4054AC

    #4054AC

    oklch(47.8% 0.142 270.6)

  • #725A00

    #725A00

    oklch(47.8% 0.098 90.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4054AC

    #4054AC

    oklch(47.8% 0.142 270.6)

  • #006395

    #006395

    oklch(47.7% 0.111 240.9)

  • #6B459F

    #6B459F

    oklch(47.7% 0.142 300.6)

Open the analogous palette in the generator

Split complementary

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

  • #4054AC

    #4054AC

    oklch(47.8% 0.142 270.6)

  • #894B00

    #894B00

    oklch(47.8% 0.112 60.4)

  • #556600

    #556600

    oklch(47.9% 0.114 120.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4054AC

    #4054AC

    oklch(47.8% 0.142 270.6)

  • #9D3527

    #9D3527

    oklch(47.8% 0.141 30.6)

  • #007033

    #007033

    oklch(47.7% 0.129 150.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4054AC

    #4054AC

    oklch(47.8% 0.142 270.6)

  • #993159

    #993159

    oklch(47.8% 0.143 0.5)

  • #725A00

    #725A00

    oklch(47.8% 0.098 90.6)

  • #006D5F

    #006D5F

    oklch(47.9% 0.087 179.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4054AC 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.