#042D45

Closest named color: Oxford Blue (#1B263B). oklch(28.4% 0.061 240.4), rgb(4, 45, 69).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.061)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.46:1
White text14.32:1

Values

HEX#042D45
RGBrgb(4, 45, 69)
HSLhsl(202, 89%, 14%)
OKLCHoklch(28.4% 0.061 240.4)

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 #042D45 14.32:1 AAA Lc -103.8 Preferred for body text
Black text on #042D45 1.46:1 Fails Lc 0.0 Not readable
#042D45 text on white 14.32:1 AAA Lc 100.8 Preferred for body text
#042D45 text on black 1.46: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

    #DEECF7

    oklch(93.6% 0.021 241.4)

  3. Step 200

    200

    #C2DDF2

    oklch(88.4% 0.041 241.4)

  4. Step 300

    300

    #96C7EC

    oklch(80.8% 0.074 241.4)

  5. Step 400

    400

    #55A9E2

    oklch(70.6% 0.117 240.8)

  6. Step 500

    500

    #0092D8

    oklch(63% 0.146 240.6)

  7. Step 600

    600

    #007BB6

    oklch(55.6% 0.128 240.2)

  8. Step 700

    700

    #00679A

    oklch(49.1% 0.113 240.5)

  9. Step 800

    800

    #00547F

    oklch(42.6% 0.099 240.7)

  10. Step 900

    900

    #00466B

    oklch(37.7% 0.087 240.8)

  11. Step 950

    950 (this color)

    #042D45

    oklch(28.4% 0.061 240.4)

Export this scale for Tailwind in the Tailwind colors tool

#042D45 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)#222D460.031
Deuteranopia (no green cones)#1928450.024
Tritanopia (no blue cones)#0033350.042
Achromatopsia (no color)#2A2A2A0.062

Harmonies

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

Complementary

The opposite hue (180°).

  • #042D45

    #042D45

    oklch(28.4% 0.061 240.4)

  • #3F2104

    #3F2104

    oklch(28.3% 0.061 59.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042D45

    #042D45

    oklch(28.4% 0.061 240.4)

  • #003037

    #003037

    oklch(28.3% 0.049 210)

  • #1E2748

    #1E2748

    oklch(28.3% 0.062 270.5)

Open the analogous palette in the generator

Split complementary

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

  • #042D45

    #042D45

    oklch(28.4% 0.061 240.4)

  • #431D17

    #431D17

    oklch(28.4% 0.06 30.5)

  • #352800

    #352800

    oklch(28.4% 0.058 89.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042D45

    #042D45

    oklch(28.4% 0.061 240.4)

  • #421B28

    #421B28

    oklch(28.4% 0.062 0.8)

  • #262E05

    #262E05

    oklch(28.4% 0.062 120.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042D45

    #042D45

    oklch(28.4% 0.061 240.4)

  • #3B1E38

    #3B1E38

    oklch(28.5% 0.061 330.9)

  • #3F2104

    #3F2104

    oklch(28.3% 0.061 59.9)

  • #0E3219

    #0E3219

    oklch(28.3% 0.061 150.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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