#004877

Closest named color: Twilight Blue (#0A437A). oklch(39% 0.101 246.2), rgb(0, 72, 119).

Aa

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

About this color

#004877 is a dark, moderately saturated blue. In OKLCH its lightness is 39%, its chroma 0.101 and its hue 246°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.017 away. White text reads best on it, at 9.57:1.

Hue familyBlues
Lightnessdark (39%)
Chromamoderately saturated (0.101)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.19:1
White text9.57:1

Values

HEX#004877
RGBrgb(0, 72, 119)
HSLhsl(204, 100%, 23%)
OKLCHoklch(39% 0.101 246.2)

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 #004877 9.57:1 AAA Lc -95.9 Preferred for body text
Black text on #004877 2.19:1 Fails Lc 12.4 Not readable
#004877 text on white 9.57:1 AAA Lc 91.6 Preferred for body text
#004877 text on black 2.19:1 Fails Lc -10.8 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 900.

  1. Step 50

    50

    #F0F6FC

    oklch(97% 0.01 247.9)

  2. Step 100

    100

    #DFECF8

    oklch(93.7% 0.021 245.9)

  3. Step 200

    200

    #C3DDF4

    oklch(88.6% 0.042 245)

  4. Step 300

    300

    #99C6EF

    oklch(80.9% 0.075 246.4)

  5. Step 400

    400

    #5CA7E7

    oklch(70.7% 0.12 246.3)

  6. Step 500

    500

    #1B8FE0

    oklch(63% 0.154 246.2)

  7. Step 600

    600

    #0078C1

    oklch(55.5% 0.143 246.2)

  8. Step 700

    700

    #0065A4

    oklch(49.2% 0.127 246.3)

  9. Step 800

    800

    #005287

    oklch(42.6% 0.111 246.5)

  10. Step 900

    900 (this color)

    #004877

    oklch(39% 0.101 246.2)

  11. Step 950

    950

    #052843

    oklch(26.9% 0.064 246.6)

Export this scale for Tailwind in the Tailwind colors tool

#004877 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)#314A790.038
Deuteranopia (no green cones)#1F41760.024
Tritanopia (no blue cones)#0053590.070
Achromatopsia (no color)#4545450.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #004877

    #004877

    oklch(39% 0.101 246.2)

  • #633A00

    #633A00

    oklch(38.9% 0.086 66.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #004877

    #004877

    oklch(39% 0.101 246.2)

  • #004E5D

    #004E5D

    oklch(39.1% 0.07 216.3)

  • #383E7A

    #383E7A

    oklch(39.1% 0.101 276.4)

Open the analogous palette in the generator

Split complementary

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

  • #004877

    #004877

    oklch(39% 0.101 246.2)

  • #712D1A

    #712D1A

    oklch(39% 0.101 36.4)

  • #524400

    #524400

    oklch(39% 0.08 95.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #004877

    #004877

    oklch(39% 0.101 246.2)

  • #6F293C

    #6F293C

    oklch(38.8% 0.101 6.2)

  • #374E00

    #374E00

    oklch(39% 0.1 126.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #004877

    #004877

    oklch(39% 0.101 246.2)

  • #652D59

    #652D59

    oklch(39% 0.1 336.2)

  • #633A00

    #633A00

    oklch(38.9% 0.086 66.8)

  • #00532F

    #00532F

    oklch(38.9% 0.094 156.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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