#042A45

Closest named color: Oxford Blue (#1B263B). oklch(27.5% 0.065 245), rgb(4, 42, 69).

Aa

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

About this color

#042A45 is a dark, muted blue. In OKLCH its lightness is 28%, its chroma 0.065 and its hue 245°. 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.76:1.

Hue familyBlues
Lightnessdark (28%)
Chromamuted (0.065)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.42:1
White text14.76:1

Values

HEX#042A45
RGBrgb(4, 42, 69)
HSLhsl(205, 89%, 14%)
OKLCHoklch(27.5% 0.065 245)

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 #042A45 14.76:1 AAA Lc -104.2 Preferred for body text
Black text on #042A45 1.42:1 Fails Lc 0.0 Not readable
#042A45 text on white 14.76:1 AAA Lc 101.3 Preferred for body text
#042A45 text on black 1.42: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

    #F0F6FC

    oklch(97% 0.01 247.9)

  2. Step 100

    100

    #DEECF8

    oklch(93.6% 0.022 243.8)

  3. Step 200

    200

    #C3DDF4

    oklch(88.6% 0.042 245)

  4. Step 300

    300

    #97C6EF

    oklch(80.8% 0.077 245.3)

  5. Step 400

    400

    #58A8E8

    oklch(70.8% 0.123 244.9)

  6. Step 500

    500

    #0B90E1

    oklch(63.1% 0.157 245.1)

  7. Step 600

    600

    #0079BF

    oklch(55.7% 0.14 245)

  8. Step 700

    700

    #0065A1

    oklch(49% 0.124 245.1)

  9. Step 800

    800

    #005385

    oklch(42.7% 0.107 244.8)

  10. Step 900

    900

    #004570

    oklch(37.7% 0.095 244.9)

  11. Step 950

    950 (this color)

    #042A45

    oklch(27.5% 0.065 245)

Export this scale for Tailwind in the Tailwind colors tool

#042A45 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)#1D2B460.026
Deuteranopia (no green cones)#1425440.020
Tritanopia (no blue cones)#0031340.046
Achromatopsia (no color)#2828280.065

Harmonies

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

Complementary

The opposite hue (180°).

  • #042A45

    #042A45

    oklch(27.5% 0.065 245)

  • #3C2000

    #3C2000

    oklch(27.5% 0.062 64.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042A45

    #042A45

    oklch(27.5% 0.065 245)

  • #002D37

    #002D37

    oklch(27.4% 0.049 217.1)

  • #1F2447

    #1F2447

    oklch(27.5% 0.065 275.2)

Open the analogous palette in the generator

Split complementary

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

  • #042A45

    #042A45

    oklch(27.5% 0.065 245)

  • #421A10

    #421A10

    oklch(27.5% 0.065 35.2)

  • #302700

    #302700

    oklch(27.5% 0.056 95.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042A45

    #042A45

    oklch(27.5% 0.065 245)

  • #411823

    #411823

    oklch(27.5% 0.065 5.5)

  • #202D03

    #202D03

    oklch(27.5% 0.066 125.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042A45

    #042A45

    oklch(27.5% 0.065 245)

  • #3A1A34

    #3A1A34

    oklch(27.4% 0.064 334.6)

  • #3C2000

    #3C2000

    oklch(27.5% 0.062 64.7)

  • #033119

    #033119

    oklch(27.6% 0.065 154.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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