#04314A

Closest named color: Midnight Green (#073B4C). oklch(29.9% 0.064 239.5), rgb(4, 49, 74).

Aa

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

About this color

#04314A is a dark, muted blue. In OKLCH its lightness is 30%, its chroma 0.064 and its hue 240°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Green (#073B4C), ΔE 0.034 away. White text reads best on it, at 13.60:1.

Hue familyBlues
Lightnessdark (30%)
Chromamuted (0.064)
Temperaturecool
Nearest nameMidnight Green (#073B4C)
Black text1.54:1
White text13.60:1

Values

HEX#04314A
RGBrgb(4, 49, 74)
HSLhsl(201, 90%, 15%)
OKLCHoklch(29.9% 0.064 239.5)

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 #04314A 13.60:1 AAA Lc -103.0 Preferred for body text
Black text on #04314A 1.54:1 Fails Lc 0.0 Not readable
#04314A text on white 13.60:1 AAA Lc 99.8 Preferred for body text
#04314A text on black 1.54: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

    #F0F7FC

    oklch(97.2% 0.01 238.5)

  2. Step 100

    100

    #DDECF7

    oklch(93.5% 0.022 239.4)

  3. Step 200

    200

    #C1DEF3

    oklch(88.6% 0.042 239.5)

  4. Step 300

    300

    #93C8ED

    oklch(80.9% 0.076 239.3)

  5. Step 400

    400

    #4EAAE4

    oklch(70.7% 0.122 239.4)

  6. Step 500

    500

    #0093D6

    oklch(63.1% 0.143 239.3)

  7. Step 600

    600

    #007BB5

    oklch(55.6% 0.127 239.8)

  8. Step 700

    700

    #006799

    oklch(49% 0.112 240)

  9. Step 800

    800

    #00557E

    oklch(42.8% 0.097 239.2)

  10. Step 900

    900

    #00466A

    oklch(37.6% 0.086 240.1)

  11. Step 950

    950 (this color)

    #04314A

    oklch(29.9% 0.064 239.5)

Export this scale for Tailwind in the Tailwind colors tool

#04314A 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)#25314B0.033
Deuteranopia (no green cones)#1B2B4A0.026
Tritanopia (no blue cones)#00373A0.041
Achromatopsia (no color)#2E2E2E0.064

Harmonies

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

Complementary

The opposite hue (180°).

  • #04314A

    #04314A

    oklch(29.9% 0.064 239.5)

  • #442405

    #442405

    oklch(29.7% 0.064 59.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04314A

    #04314A

    oklch(29.9% 0.064 239.5)

  • #00343B

    #00343B

    oklch(29.8% 0.051 209.2)

  • #212B4E

    #212B4E

    oklch(29.9% 0.065 270.1)

Open the analogous palette in the generator

Split complementary

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

  • #04314A

    #04314A

    oklch(29.9% 0.064 239.5)

  • #491F1A

    #491F1A

    oklch(29.9% 0.065 28.5)

  • #392B00

    #392B00

    oklch(29.7% 0.061 89.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04314A

    #04314A

    oklch(29.9% 0.064 239.5)

  • #471E2C

    #471E2C

    oklch(29.9% 0.065 0.2)

  • #2A3206

    #2A3206

    oklch(30% 0.064 119.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04314A

    #04314A

    oklch(29.9% 0.064 239.5)

  • #3F213D

    #3F213D

    oklch(30% 0.064 329.4)

  • #442405

    #442405

    oklch(29.7% 0.064 59.6)

  • #11361B

    #11361B

    oklch(29.8% 0.064 149.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04314A 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.