#04579F

Closest named color: Dusk Blue (#26538D). oklch(45.5% 0.136 252.5), rgb(4, 87, 159).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (46%)
Chromamoderately saturated (0.136)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.86:1
White text7.31:1

Values

HEX#04579F
RGBrgb(4, 87, 159)
HSLhsl(208, 95%, 32%)
OKLCHoklch(45.5% 0.136 252.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 #04579F 7.31:1 AAA Lc -89.7 Fine for body text
Black text on #04579F 2.86:1 Fails Lc 19.2 Dividers and decoration only
#04579F text on white 7.31:1 AAA Lc 84.8 Fine for body text
#04579F text on black 2.86:1 Fails Lc -17.2 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

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #DFEBF9

    oklch(93.5% 0.023 252.2)

  3. Step 200

    200

    #C5DCF6

    oklch(88.6% 0.044 251.5)

  4. Step 300

    300

    #9CC4F3

    oklch(80.8% 0.079 252.8)

  5. Step 400

    400

    #63A4ED

    oklch(70.6% 0.127 252.5)

  6. Step 500

    500

    #318BE8

    oklch(63% 0.163 252.7)

  7. Step 600

    600

    #0074D2

    oklch(55.7% 0.168 252.4)

  8. Step 700

    700

    #0061B1

    oklch(49.1% 0.148 252.3)

  9. Step 800

    800 (this color)

    #04579F

    oklch(45.5% 0.136 252.5)

  10. Step 900

    900

    #0A4277

    oklch(37.6% 0.105 252.3)

  11. Step 950

    950

    #0A2746

    oklch(27% 0.067 252.9)

Export this scale for Tailwind in the Tailwind colors tool

#04579F 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)#305DA20.034
Deuteranopia (no green cones)#0B509E0.019
Tritanopia (no blue cones)#0068730.099
Achromatopsia (no color)#5656560.136

Harmonies

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

Complementary

The opposite hue (180°).

  • #04579F

    #04579F

    oklch(45.5% 0.136 252.5)

  • #774C00

    #774C00

    oklch(45.4% 0.097 72.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04579F

    #04579F

    oklch(45.5% 0.136 252.5)

  • #006078

    #006078

    oklch(45.4% 0.084 222.6)

  • #4E489F

    #4E489F

    oklch(45.5% 0.137 282.6)

Open the analogous palette in the generator

Split complementary

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

  • #04579F

    #04579F

    oklch(45.5% 0.136 252.5)

  • #913501

    #913501

    oklch(45.5% 0.135 42.5)

  • #615800

    #615800

    oklch(45.5% 0.095 102.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04579F

    #04579F

    oklch(45.5% 0.136 252.5)

  • #922D41

    #922D41

    oklch(45.5% 0.135 12.7)

  • #396400

    #396400

    oklch(45.4% 0.127 132.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04579F

    #04579F

    oklch(45.5% 0.136 252.5)

  • #87316B

    #87316B

    oklch(45.6% 0.136 342.6)

  • #774C00

    #774C00

    oklch(45.4% 0.097 72.2)

  • #006746

    #006746

    oklch(45.4% 0.099 162.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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