#042A4E

Closest named color: Marine (#042E60). oklch(28.2% 0.078 251.6), rgb(4, 42, 78).

Aa

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

About this color

#042A4E is a dark, moderately saturated blue. In OKLCH its lightness is 28%, its chroma 0.078 and its hue 252°. Its hue sits on the cool side of the wheel. The nearest named color is Marine (#042E60), ΔE 0.034 away. White text reads best on it, at 14.51:1.

Hue familyBlues
Lightnessdark (28%)
Chromamoderately saturated (0.078)
Temperaturecool
Nearest nameMarine (#042E60)
Black text1.44:1
White text14.51:1

Values

HEX#042A4E
RGBrgb(4, 42, 78)
HSLhsl(209, 90%, 16%)
OKLCHoklch(28.2% 0.078 251.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 #042A4E 14.51:1 AAA Lc -103.9 Preferred for body text
Black text on #042A4E 1.44:1 Fails Lc 0.0 Not readable
#042A4E text on white 14.51:1 AAA Lc 101.0 Preferred for body text
#042A4E text on black 1.44: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

    #F0F6FE

    oklch(97.1% 0.012 255.5)

  2. Step 100

    100

    #DDECFC

    oklch(93.7% 0.027 249.9)

  3. Step 200

    200

    #C1DCFB

    oklch(88.5% 0.052 252)

  4. Step 300

    300

    #95C5FB

    oklch(80.9% 0.092 251.9)

  5. Step 400

    400

    #54A4F9

    oklch(70.6% 0.148 251.9)

  6. Step 500

    500

    #008BF5

    oklch(63.2% 0.186 251.5)

  7. Step 600

    600

    #0074CF

    oklch(55.5% 0.165 251.7)

  8. Step 700

    700

    #0062AF

    oklch(49.2% 0.144 251.3)

  9. Step 800

    800

    #005091

    oklch(42.8% 0.126 251.5)

  10. Step 900

    900

    #00427A

    oklch(37.7% 0.112 251.7)

  11. Step 950

    950 (this color)

    #042A4E

    oklch(28.2% 0.078 251.6)

Export this scale for Tailwind in the Tailwind colors tool

#042A4E 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)#182D4F0.022
Deuteranopia (no green cones)#0A264D0.013
Tritanopia (no blue cones)#0033380.057
Achromatopsia (no color)#2929290.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #042A4E

    #042A4E

    oklch(28.2% 0.078 251.6)

  • #3B2300

    #3B2300

    oklch(28% 0.06 71.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042A4E

    #042A4E

    oklch(28.2% 0.078 251.6)

  • #002F3B

    #002F3B

    oklch(28.2% 0.051 220.2)

  • #24234E

    #24234E

    oklch(28.3% 0.077 281.3)

Open the analogous palette in the generator

Split complementary

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

  • #042A4E

    #042A4E

    oklch(28.2% 0.078 251.6)

  • #481905

    #481905

    oklch(28.3% 0.078 41.6)

  • #2F2A00

    #2F2A00

    oklch(28.2% 0.059 102.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042A4E

    #042A4E

    oklch(28.2% 0.078 251.6)

  • #48151F

    #48151F

    oklch(28.2% 0.078 11.8)

  • #1A3100

    #1A3100

    oklch(28.3% 0.079 132)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042A4E

    #042A4E

    oklch(28.2% 0.078 251.6)

  • #421734

    #421734

    oklch(28.2% 0.078 342.1)

  • #3B2300

    #3B2300

    oklch(28% 0.06 71.5)

  • #00321F

    #00321F

    oklch(28% 0.062 161.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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