#04579A

Closest named color: Dusk Blue (#26538D). oklch(45.2% 0.129 251), rgb(4, 87, 154).

Aa

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

About this color

#04579A is a medium-dark, moderately saturated blue. In OKLCH its lightness is 45%, its chroma 0.129 and its hue 251°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.026 away. White text reads best on it, at 7.40:1.

Hue familyBlues
Lightnessmedium-dark (45%)
Chromamoderately saturated (0.129)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.83:1
White text7.40:1

Values

HEX#04579A
RGBrgb(4, 87, 154)
HSLhsl(207, 95%, 31%)
OKLCHoklch(45.2% 0.129 251)

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 #04579A 7.40:1 AAA Lc -90.0 Preferred for body text
Black text on #04579A 2.83:1 Fails Lc 18.9 Dividers and decoration only
#04579A text on white 7.40:1 AAA Lc 85.1 Fine for body text
#04579A text on black 2.83:1 Fails Lc -16.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 800.

  1. Step 50

    50

    #F1F6FC

    oklch(97.1% 0.01 252.8)

  2. Step 100

    100

    #E0EBF8

    oklch(93.6% 0.021 252.5)

  3. Step 200

    200

    #C5DCF5

    oklch(88.5% 0.042 250.5)

  4. Step 300

    300

    #9DC5F0

    oklch(81% 0.075 250.6)

  5. Step 400

    400

    #64A5E9

    oklch(70.7% 0.121 250.9)

  6. Step 500

    500

    #338DE3

    oklch(63.2% 0.154 250.9)

  7. Step 600

    600

    #0075CD

    oklch(55.6% 0.161 250.9)

  8. Step 700

    700

    #0062AE

    oklch(49.1% 0.143 251.1)

  9. Step 800

    800 (this color)

    #04579A

    oklch(45.2% 0.129 251)

  10. Step 900

    900

    #0C4375

    oklch(37.8% 0.101 251.2)

  11. Step 950

    950

    #0A2844

    oklch(27.1% 0.063 250.1)

Export this scale for Tailwind in the Tailwind colors tool

#04579A 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)#345C9D0.036
Deuteranopia (no green cones)#1750990.020
Tritanopia (no blue cones)#0067710.093
Achromatopsia (no color)#5555550.129

Harmonies

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

Complementary

The opposite hue (180°).

  • #04579A

    #04579A

    oklch(45.2% 0.129 251)

  • #774B00

    #774B00

    oklch(45.2% 0.097 71.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04579A

    #04579A

    oklch(45.2% 0.129 251)

  • #006076

    #006076

    oklch(45.3% 0.083 220.6)

  • #4B499B

    #4B499B

    oklch(45.1% 0.13 280.9)

Open the analogous palette in the generator

Split complementary

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

  • #04579A

    #04579A

    oklch(45.2% 0.129 251)

  • #8E360E

    #8E360E

    oklch(45.2% 0.129 41.2)

  • #615700

    #615700

    oklch(45.2% 0.095 101.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04579A

    #04579A

    oklch(45.2% 0.129 251)

  • #8E2F44

    #8E2F44

    oklch(45.1% 0.129 10.7)

  • #3C6300

    #3C6300

    oklch(45.3% 0.124 131.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04579A

    #04579A

    oklch(45.2% 0.129 251)

  • #83336B

    #83336B

    oklch(45.2% 0.129 340.9)

  • #774B00

    #774B00

    oklch(45.2% 0.097 71.2)

  • #006643

    #006643

    oklch(45.1% 0.1 161.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04579A 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.