#042C40

Closest named color: Oxford Blue (#1B263B). oklch(27.8% 0.056 236.1), rgb(4, 44, 64).

Aa

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

About this color

#042C40 is a dark, muted blue. In OKLCH its lightness is 28%, its chroma 0.056 and its hue 236°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.028 away. White text reads best on it, at 14.58:1.

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.056)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.43:1
White text14.58:1

Values

HEX#042C40
RGBrgb(4, 44, 64)
HSLhsl(200, 88%, 13%)
OKLCHoklch(27.8% 0.056 236.1)

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 #042C40 14.58:1 AAA Lc -104.1 Preferred for body text
Black text on #042C40 1.43:1 Fails Lc 0.0 Not readable
#042C40 text on white 14.58:1 AAA Lc 101.1 Preferred for body text
#042C40 text on black 1.43: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

    #F0F6FB

    oklch(97% 0.009 242.8)

  2. Step 100

    100

    #DEECF5

    oklch(93.5% 0.019 235.7)

  3. Step 200

    200

    #C3DEEF

    oklch(88.6% 0.037 235.5)

  4. Step 300

    300

    #98C8E6

    oklch(80.9% 0.066 236.1)

  5. Step 400

    400

    #58ABDA

    oklch(70.8% 0.106 235.8)

  6. Step 500

    500

    #0294D0

    oklch(63.1% 0.136 236.3)

  7. Step 600

    600

    #007CB0

    oklch(55.5% 0.121 236.7)

  8. Step 700

    700

    #006994

    oklch(49.2% 0.105 235.5)

  9. Step 800

    800

    #00567A

    oklch(42.8% 0.091 235.4)

  10. Step 900

    900

    #004767

    oklch(37.7% 0.082 236.6)

  11. Step 950

    950 (this color)

    #042C40

    oklch(27.8% 0.056 236.1)

Export this scale for Tailwind in the Tailwind colors tool

#042C40 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)#222C410.032
Deuteranopia (no green cones)#1A26400.027
Tritanopia (no blue cones)#0031330.035
Achromatopsia (no color)#2929290.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #042C40

    #042C40

    oklch(27.8% 0.056 236.1)

  • #3D2009

    #3D2009

    oklch(27.8% 0.056 55.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042C40

    #042C40

    oklch(27.8% 0.056 236.1)

  • #002F34

    #002F34

    oklch(27.9% 0.048 206)

  • #1B2744

    #1B2744

    oklch(27.8% 0.056 265.9)

Open the analogous palette in the generator

Split complementary

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

  • #042C40

    #042C40

    oklch(27.8% 0.056 236.1)

  • #401C19

    #401C19

    oklch(27.8% 0.057 26.3)

  • #342601

    #342601

    oklch(27.8% 0.056 87)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042C40

    #042C40

    oklch(27.8% 0.056 236.1)

  • #3D1C29

    #3D1C29

    oklch(27.8% 0.055 356.3)

  • #272B06

    #272B06

    oklch(27.6% 0.056 115.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042C40

    #042C40

    oklch(27.8% 0.056 236.1)

  • #361E37

    #361E37

    oklch(27.8% 0.055 325.5)

  • #3D2009

    #3D2009

    oklch(27.8% 0.056 55.8)

  • #143017

    #143017

    oklch(27.9% 0.057 146.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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