#054797

Closest named color: Cobalt (#1E488F). oklch(41.2% 0.144 257.5), rgb(5, 71, 151).

Aa

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

About this color

#054797 is a dark, vivid blue. In OKLCH its lightness is 41%, its chroma 0.144 and its hue 257°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.019 away. White text reads best on it, at 8.91:1.

Hue familyBlues
Lightnessdark (41%)
Chromavivid (0.144)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.35:1
White text8.91:1

Values

HEX#054797
RGBrgb(5, 71, 151)
HSLhsl(213, 94%, 31%)
OKLCHoklch(41.2% 0.144 257.5)

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 #054797 8.91:1 AAA Lc -94.2 Preferred for body text
Black text on #054797 2.35:1 Fails Lc 14.2 Not readable
#054797 text on white 8.91:1 AAA Lc 89.8 Fine for body text
#054797 text on black 2.35:1 Fails Lc -12.5 Not readable

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 800.

  1. Step 50

    50

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #E0EBFB

    oklch(93.7% 0.025 257.6)

  3. Step 200

    200

    #C6DBF9

    oklch(88.5% 0.047 257.3)

  4. Step 300

    300

    #9EC3F7

    oklch(80.9% 0.084 256.9)

  5. Step 400

    400

    #68A2F4

    oklch(70.8% 0.135 257.2)

  6. Step 500

    500

    #3D88EF

    oklch(63.2% 0.172 257.2)

  7. Step 600

    600

    #166EDE

    oklch(55.5% 0.188 257.6)

  8. Step 700

    700

    #055CC1

    oklch(49.2% 0.174 257.4)

  9. Step 800

    800 (this color)

    #054797

    oklch(41.2% 0.144 257.5)

  10. Step 900

    900

    #14407C

    oklch(37.8% 0.113 257.5)

  11. Step 950

    950

    #0D2648

    oklch(27% 0.07 257)

Export this scale for Tailwind in the Tailwind colors tool

#054797 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)#0A509A0.026
Deuteranopia (no green cones)#0044950.009
Tritanopia (no blue cones)#005B680.109
Achromatopsia (no color)#4A4A4A0.145

Harmonies

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

Complementary

The opposite hue (180°).

  • #054797

    #054797

    oklch(41.2% 0.144 257.5)

  • #644400

    #644400

    oklch(41.2% 0.086 78.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #054797

    #054797

    oklch(41.2% 0.144 257.5)

  • #00536D

    #00536D

    oklch(41.3% 0.08 227.7)

  • #4A3793

    #4A3793

    oklch(41.2% 0.145 287.8)

Open the analogous palette in the generator

Split complementary

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

  • #054797

    #054797

    oklch(41.2% 0.144 257.5)

  • #7A3300

    #7A3300

    oklch(41.3% 0.113 47.7)

  • #504E00

    #504E00

    oklch(41.2% 0.089 108)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #054797

    #054797

    oklch(41.2% 0.144 257.5)

  • #88192C

    #88192C

    oklch(41.2% 0.145 17.7)

  • #235900

    #235900

    oklch(41.1% 0.125 137.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #054797

    #054797

    oklch(41.2% 0.144 257.5)

  • #7E1D59

    #7E1D59

    oklch(41.1% 0.145 347.5)

  • #644400

    #644400

    oklch(41.2% 0.086 78.2)

  • #005942

    #005942

    oklch(41.2% 0.084 167.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #054797 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.