#042642

Closest named color: Oxford Blue (#1B263B). oklch(26.2% 0.065 248.1), rgb(4, 38, 66).

Aa

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

About this color

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

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

Values

HEX#042642
RGBrgb(4, 38, 66)
HSLhsl(207, 89%, 14%)
OKLCHoklch(26.2% 0.065 248.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 #042642 15.42:1 AAA Lc -104.8 Preferred for body text
Black text on #042642 1.36:1 Fails Lc 0.0 Not readable
#042642 text on white 15.42:1 AAA Lc 102.1 Preferred for body text
#042642 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

    #F0F6FC

    oklch(97% 0.01 247.9)

  2. Step 100

    100

    #DFECF8

    oklch(93.7% 0.021 245.9)

  3. Step 200

    200

    #C4DCF5

    oklch(88.5% 0.043 249.4)

  4. Step 300

    300

    #9AC6F0

    oklch(81% 0.076 247.6)

  5. Step 400

    400

    #5DA6E9

    oklch(70.6% 0.123 248.1)

  6. Step 500

    500

    #228EE3

    oklch(63.1% 0.158 248.2)

  7. Step 600

    600

    #0077C6

    oklch(55.6% 0.15 248.2)

  8. Step 700

    700

    #0064A7

    oklch(49.1% 0.132 247.9)

  9. Step 800

    800

    #00528A

    oklch(42.8% 0.115 247.8)

  10. Step 900

    900

    #004474

    oklch(37.7% 0.101 247.8)

  11. Step 950

    950 (this color)

    #042642

    oklch(26.2% 0.065 248.1)

Export this scale for Tailwind in the Tailwind colors tool

#042642 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)#1928430.024
Deuteranopia (no green cones)#0F22410.015
Tritanopia (no blue cones)#002D300.048
Achromatopsia (no color)#2424240.065

Harmonies

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

Complementary

The opposite hue (180°).

  • #042642

    #042642

    oklch(26.2% 0.065 248.1)

  • #361E00

    #361E00

    oklch(26.1% 0.057 68.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042642

    #042642

    oklch(26.2% 0.065 248.1)

  • #002A34

    #002A34

    oklch(26.3% 0.047 218.2)

  • #1E2043

    #1E2043

    oklch(26.2% 0.065 278.5)

Open the analogous palette in the generator

Split complementary

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

  • #042642

    #042642

    oklch(26.2% 0.065 248.1)

  • #3E170B

    #3E170B

    oklch(26.2% 0.065 37.6)

  • #2B2400

    #2B2400

    oklch(26% 0.054 98.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042642

    #042642

    oklch(26.2% 0.065 248.1)

  • #3E151E

    #3E151E

    oklch(26.3% 0.065 9.1)

  • #1B2A02

    #1B2A02

    oklch(26.2% 0.065 128.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042642

    #042642

    oklch(26.2% 0.065 248.1)

  • #38162F

    #38162F

    oklch(26.1% 0.066 338.5)

  • #361E00

    #361E00

    oklch(26.1% 0.057 68.1)

  • #002D19

    #002D19

    oklch(26.2% 0.061 158.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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