#042E42

Closest named color: Oxford Blue (#1B263B). oklch(28.5% 0.057 235), rgb(4, 46, 66).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.057)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.47:1
White text14.24:1

Values

HEX#042E42
RGBrgb(4, 46, 66)
HSLhsl(199, 89%, 14%)
OKLCHoklch(28.5% 0.057 235)

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 #042E42 14.24:1 AAA Lc -103.7 Preferred for body text
Black text on #042E42 1.47:1 Fails Lc 0.0 Not readable
#042E42 text on white 14.24:1 AAA Lc 100.7 Preferred for body text
#042E42 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

    #F0F7FB

    oklch(97.2% 0.009 232.4)

  2. Step 100

    100

    #DEECF5

    oklch(93.5% 0.019 235.7)

  3. Step 200

    200

    #C2DEEF

    oklch(88.5% 0.038 234.5)

  4. Step 300

    300

    #96C8E6

    oklch(80.8% 0.067 235)

  5. Step 400

    400

    #55ABDA

    oklch(70.7% 0.108 235)

  6. Step 500

    500

    #0095CE

    oklch(63.2% 0.133 234.7)

  7. Step 600

    600

    #007DAE

    oklch(55.7% 0.118 234.9)

  8. Step 700

    700

    #006993

    oklch(49.2% 0.104 234.9)

  9. Step 800

    800

    #005679

    oklch(42.8% 0.09 234.7)

  10. Step 900

    900

    #004766

    oklch(37.6% 0.081 235.8)

  11. Step 950

    950 (this color)

    #042E42

    oklch(28.5% 0.057 235)

Export this scale for Tailwind in the Tailwind colors tool

#042E42 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)#242E430.034
Deuteranopia (no green cones)#1C28420.028
Tritanopia (no blue cones)#0033350.034
Achromatopsia (no color)#2B2B2B0.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #042E42

    #042E42

    oklch(28.5% 0.057 235)

  • #3F220B

    #3F220B

    oklch(28.6% 0.056 56.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042E42

    #042E42

    oklch(28.5% 0.057 235)

  • #003135

    #003135

    oklch(28.5% 0.049 203.5)

  • #1C2946

    #1C2946

    oklch(28.5% 0.056 264.8)

Open the analogous palette in the generator

Split complementary

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

  • #042E42

    #042E42

    oklch(28.5% 0.057 235)

  • #421E1B

    #421E1B

    oklch(28.5% 0.056 26.1)

  • #372701

    #372701

    oklch(28.4% 0.057 84.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042E42

    #042E42

    oklch(28.5% 0.057 235)

  • #401D2B

    #401D2B

    oklch(28.5% 0.057 356)

  • #292D07

    #292D07

    oklch(28.4% 0.057 115.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042E42

    #042E42

    oklch(28.5% 0.057 235)

  • #381F39

    #381F39

    oklch(28.4% 0.057 325.6)

  • #3F220B

    #3F220B

    oklch(28.6% 0.056 56.1)

  • #163118

    #163118

    oklch(28.4% 0.056 145.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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