#042838

Closest named color: Oxford Blue (#1B263B). oklch(26.1% 0.049 232.4), rgb(4, 40, 56).

Aa

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

About this color

#042838 is a dark, muted blue. In OKLCH its lightness is 26%, its chroma 0.049 and its hue 232°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.026 away. White text reads best on it, at 15.37:1.

Hue familyBlues
Lightnessdark (26%)
Chromamuted (0.049)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.36:1
White text15.37:1

Values

HEX#042838
RGBrgb(4, 40, 56)
HSLhsl(198, 87%, 12%)
OKLCHoklch(26.1% 0.049 232.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 #042838 15.37:1 AAA Lc -104.8 Preferred for body text
Black text on #042838 1.36:1 Fails Lc 0.0 Not readable
#042838 text on white 15.37:1 AAA Lc 102.1 Preferred for body text
#042838 text on black 1.36: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

    #F1F6FA

    oklch(97.1% 0.008 241.7)

  2. Step 100

    100

    #DFECF3

    oklch(93.5% 0.017 230.9)

  3. Step 200

    200

    #C5DDEB

    oklch(88.4% 0.032 233.3)

  4. Step 300

    300

    #9BC8E0

    oklch(80.9% 0.058 231.7)

  5. Step 400

    400

    #60ABD1

    oklch(70.7% 0.093 232.2)

  6. Step 500

    500

    #2395C5

    oklch(63.1% 0.119 232.2)

  7. Step 600

    600

    #007EAA

    oklch(55.7% 0.113 231.8)

  8. Step 700

    700

    #006990

    oklch(49% 0.101 232.9)

  9. Step 800

    800

    #005677

    oklch(42.6% 0.088 233.1)

  10. Step 900

    900

    #004863

    oklch(37.7% 0.077 231.8)

  11. Step 950

    950 (this color)

    #042838

    oklch(26.1% 0.049 232.4)

Export this scale for Tailwind in the Tailwind colors tool

#042838 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)#2027390.032
Deuteranopia (no green cones)#1923380.026
Tritanopia (no blue cones)#002C2D0.029
Achromatopsia (no color)#2525250.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #042838

    #042838

    oklch(26.1% 0.049 232.4)

  • #371D0C

    #371D0C

    oklch(26.2% 0.049 52.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042838

    #042838

    oklch(26.1% 0.049 232.4)

  • #002A2E

    #002A2E

    oklch(26% 0.044 204.6)

  • #17243C

    #17243C

    oklch(26.2% 0.049 261.9)

Open the analogous palette in the generator

Split complementary

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

  • #042838

    #042838

    oklch(26.1% 0.049 232.4)

  • #391A19

    #391A19

    oklch(26.2% 0.049 22.9)

  • #302203

    #302203

    oklch(26.2% 0.05 83.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042838

    #042838

    oklch(26.1% 0.049 232.4)

  • #361927

    #361927

    oklch(26% 0.05 350.9)

  • #252607

    #252607

    oklch(26% 0.048 111.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042838

    #042838

    oklch(26.1% 0.049 232.4)

  • #2F1C32

    #2F1C32

    oklch(26.1% 0.048 321.9)

  • #371D0C

    #371D0C

    oklch(26.2% 0.049 52.1)

  • #152A13

    #152A13

    oklch(26% 0.05 142.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #042838 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.