#042D51

Closest named color: Marine (#042E60). oklch(29.2% 0.078 250.3), rgb(4, 45, 81).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (29%)
Chromamoderately saturated (0.078)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.49:1
White text14.00:1

Values

HEX#042D51
RGBrgb(4, 45, 81)
HSLhsl(208, 91%, 17%)
OKLCHoklch(29.2% 0.078 250.3)

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 #042D51 14.00:1 AAA Lc -103.4 Preferred for body text
Black text on #042D51 1.49:1 Fails Lc 0.0 Not readable
#042D51 text on white 14.00:1 AAA Lc 100.3 Preferred for body text
#042D51 text on black 1.49: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

    #EFF6FE

    oklch(97% 0.013 251.6)

  2. Step 100

    100

    #DDECFC

    oklch(93.7% 0.027 249.9)

  3. Step 200

    200

    #C0DCFB

    oklch(88.4% 0.052 251.1)

  4. Step 300

    300

    #93C5FB

    oklch(80.8% 0.093 250.9)

  5. Step 400

    400

    #4FA5F9

    oklch(70.7% 0.149 250.3)

  6. Step 500

    500

    #008CF1

    oklch(63.1% 0.18 250.4)

  7. Step 600

    600

    #0075CB

    oklch(55.5% 0.159 250.4)

  8. Step 700

    700

    #0062AC

    oklch(49% 0.141 250.5)

  9. Step 800

    800

    #00508E

    oklch(42.6% 0.122 250.5)

  10. Step 900

    900

    #004378

    oklch(37.8% 0.108 250.3)

  11. Step 950

    950 (this color)

    #042D51

    oklch(29.2% 0.078 250.3)

Export this scale for Tailwind in the Tailwind colors tool

#042D51 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)#1B2F520.023
Deuteranopia (no green cones)#0E29500.013
Tritanopia (no blue cones)#00363B0.057
Achromatopsia (no color)#2C2C2C0.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #042D51

    #042D51

    oklch(29.2% 0.078 250.3)

  • #3F2500

    #3F2500

    oklch(29.1% 0.063 70.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042D51

    #042D51

    oklch(29.2% 0.078 250.3)

  • #00323E

    #00323E

    oklch(29.3% 0.053 219.2)

  • #252652

    #252652

    oklch(29.3% 0.078 279.4)

Open the analogous palette in the generator

Split complementary

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

  • #042D51

    #042D51

    oklch(29.2% 0.078 250.3)

  • #4B1B08

    #4B1B08

    oklch(29.2% 0.079 40.4)

  • #332C00

    #332C00

    oklch(29.2% 0.061 99.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042D51

    #042D51

    oklch(29.2% 0.078 250.3)

  • #4B1823

    #4B1823

    oklch(29.3% 0.078 10.1)

  • #1E3300

    #1E3300

    oklch(29.2% 0.079 130.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042D51

    #042D51

    oklch(29.2% 0.078 250.3)

  • #441A38

    #441A38

    oklch(29.2% 0.077 339.8)

  • #3F2500

    #3F2500

    oklch(29.1% 0.063 70.3)

  • #003620

    #003620

    oklch(29.4% 0.067 159.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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