#042C4E

Closest named color: Marine (#042E60). oklch(28.7% 0.075 249.5), rgb(4, 44, 78).

Aa

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

About this color

#042C4E is a dark, moderately saturated blue. In OKLCH its lightness is 29%, its chroma 0.075 and its hue 249°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.033 away. White text reads best on it, at 14.23:1.

Hue familyBlues
Lightnessdark (29%)
Chromamoderately saturated (0.075)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.47:1
White text14.23:1

Values

HEX#042C4E
RGBrgb(4, 44, 78)
HSLhsl(208, 90%, 16%)
OKLCHoklch(28.7% 0.075 249.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 #042C4E 14.23:1 AAA Lc -103.6 Preferred for body text
Black text on #042C4E 1.47:1 Fails Lc 0.0 Not readable
#042C4E text on white 14.23:1 AAA Lc 100.6 Preferred for body text
#042C4E text on black 1.47:1 Fails Lc 0.0 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 950.

  1. Step 50

    50

    #F0F6FD

    oklch(97.1% 0.011 252.1)

  2. Step 100

    100

    #DDECFB

    oklch(93.6% 0.026 248.1)

  3. Step 200

    200

    #C1DCF9

    oklch(88.4% 0.049 250.3)

  4. Step 300

    300

    #94C6F8

    oklch(81% 0.088 249)

  5. Step 400

    400

    #52A6F5

    oklch(70.8% 0.142 249.3)

  6. Step 500

    500

    #008DEE

    oklch(63.2% 0.176 249.3)

  7. Step 600

    600

    #0076C9

    oklch(55.6% 0.155 249.4)

  8. Step 700

    700

    #0063AA

    oklch(49.1% 0.137 249.4)

  9. Step 800

    800

    #00518D

    oklch(42.7% 0.12 249.5)

  10. Step 900

    900

    #004376

    oklch(37.6% 0.105 249.5)

  11. Step 950

    950 (this color)

    #042C4E

    oklch(28.7% 0.075 249.5)

Export this scale for Tailwind in the Tailwind colors tool

#042C4E 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)#1B2E4F0.023
Deuteranopia (no green cones)#0F284D0.014
Tritanopia (no blue cones)#0034390.053
Achromatopsia (no color)#2B2B2B0.075

Harmonies

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

Complementary

The opposite hue (180°).

  • #042C4E

    #042C4E

    oklch(28.7% 0.075 249.5)

  • #3E2400

    #3E2400

    oklch(28.7% 0.062 69.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042C4E

    #042C4E

    oklch(28.7% 0.075 249.5)

  • #00303C

    #00303C

    oklch(28.6% 0.052 219.9)

  • #24254F

    #24254F

    oklch(28.8% 0.075 279.5)

Open the analogous palette in the generator

Split complementary

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

  • #042C4E

    #042C4E

    oklch(28.7% 0.075 249.5)

  • #491B0A

    #491B0A

    oklch(28.9% 0.075 39.7)

  • #322B00

    #322B00

    oklch(28.8% 0.06 99.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042C4E

    #042C4E

    oklch(28.7% 0.075 249.5)

  • #481722

    #481722

    oklch(28.6% 0.075 9.5)

  • #1E3101

    #1E3101

    oklch(28.6% 0.075 129.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042C4E

    #042C4E

    oklch(28.7% 0.075 249.5)

  • #421937

    #421937

    oklch(28.7% 0.076 338.9)

  • #3E2400

    #3E2400

    oklch(28.7% 0.062 69.6)

  • #00341F

    #00341F

    oklch(28.7% 0.065 160)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #042C4E 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.