#042A54

Closest named color: Marine (#042E60). oklch(28.7% 0.087 254.6), rgb(4, 42, 84).

Aa

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

About this color

#042A54 is a dark, moderately saturated blue. In OKLCH its lightness is 29%, its chroma 0.087 and its hue 255°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.024 away. White text reads best on it, at 14.34:1.

Hue familyBlues
Lightnessdark (29%)
Chromamoderately saturated (0.087)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.46:1
White text14.34:1

Values

HEX#042A54
RGBrgb(4, 42, 84)
HSLhsl(212, 91%, 17%)
OKLCHoklch(28.7% 0.087 254.6)

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

    #EFF6FF

    oklch(97% 0.014 254.6)

  2. Step 100

    100

    #DDEBFE

    oklch(93.5% 0.03 256)

  3. Step 200

    200

    #C0DCFF

    oklch(88.5% 0.057 254.1)

  4. Step 300

    300

    #95C4FF

    oklch(80.9% 0.098 254.5)

  5. Step 400

    400

    #56A2FF

    oklch(70.6% 0.156 254.7)

  6. Step 500

    500

    #0887FF

    oklch(63% 0.202 254.6)

  7. Step 600

    600

    #0071D9

    oklch(55.6% 0.181 254.6)

  8. Step 700

    700

    #005FB8

    oklch(49.1% 0.16 254.6)

  9. Step 800

    800

    #004D98

    oklch(42.6% 0.139 254.8)

  10. Step 900

    900

    #004080

    oklch(37.6% 0.123 254.7)

  11. Step 950

    950 (this color)

    #042A54

    oklch(28.7% 0.087 254.6)

Export this scale for Tailwind in the Tailwind colors tool

#042A54 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)#132E560.019
Deuteranopia (no green cones)#0127530.010
Tritanopia (no blue cones)#00343A0.065
Achromatopsia (no color)#2A2A2A0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #042A54

    #042A54

    oklch(28.7% 0.087 254.6)

  • #3C2500

    #3C2500

    oklch(28.6% 0.061 74)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042A54

    #042A54

    oklch(28.7% 0.087 254.6)

  • #00303E

    #00303E

    oklch(28.7% 0.054 223.4)

  • #272253

    #272253

    oklch(28.7% 0.086 284.2)

Open the analogous palette in the generator

Split complementary

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

  • #042A54

    #042A54

    oklch(28.7% 0.087 254.6)

  • #4A1900

    #4A1900

    oklch(28.6% 0.083 44.5)

  • #2F2C00

    #2F2C00

    oklch(28.7% 0.061 105.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042A54

    #042A54

    oklch(28.7% 0.087 254.6)

  • #4D131D

    #4D131D

    oklch(28.8% 0.087 14.5)

  • #173300

    #173300

    oklch(28.7% 0.083 134.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042A54

    #042A54

    oklch(28.7% 0.087 254.6)

  • #461434

    #461434

    oklch(28.5% 0.087 344.7)

  • #3C2500

    #3C2500

    oklch(28.6% 0.061 74)

  • #003423

    #003423

    oklch(28.8% 0.061 164.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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