#04182E

Closest named color: Rich Black (#0D1B2A). oklch(20.6% 0.051 252.1), rgb(4, 24, 46).

Aa

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

About this color

#04182E is a very dark, muted blue. In OKLCH its lightness is 21%, its chroma 0.051 and its hue 252°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.020 away. White text reads best on it, at 17.86:1.

Hue familyBlues
Lightnessvery dark (21%)
Chromamuted (0.051)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.17:1
White text17.86:1

Values

HEX#04182E
RGBrgb(4, 24, 46)
HSLhsl(211, 84%, 10%)
OKLCHoklch(20.6% 0.051 252.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 #04182E 17.86:1 AAA Lc -106.7 Preferred for body text
Black text on #04182E 1.17:1 Fails Lc 0.0 Not readable
#04182E text on white 17.86:1 AAA Lc 104.5 Preferred for body text
#04182E text on black 1.17: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

    #F2F6FB

    oklch(97.2% 0.008 253.9)

  2. Step 100

    100

    #E2EBF6

    oklch(93.7% 0.018 253.3)

  3. Step 200

    200

    #CADBEF

    oklch(88.5% 0.033 252.5)

  4. Step 300

    300

    #A5C4E8

    oklch(81% 0.061 252.4)

  5. Step 400

    400

    #73A4DC

    oklch(70.6% 0.098 252.5)

  6. Step 500

    500

    #4D8DD2

    oklch(63.2% 0.124 251.9)

  7. Step 600

    600

    #2D75BF

    oklch(55.5% 0.135 252.1)

  8. Step 700

    700

    #1F62A5

    oklch(49% 0.126 252.1)

  9. Step 800

    800

    #1C5086

    oklch(42.6% 0.105 252.4)

  10. Step 900

    900

    #1E436B

    oklch(37.7% 0.081 252.3)

  11. Step 950

    950 (this color)

    #04182E

    oklch(20.6% 0.051 252.1)

Export this scale for Tailwind in the Tailwind colors tool

#04182E 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)#0D1A2F0.015
Deuteranopia (no green cones)#07162E0.007
Tritanopia (no blue cones)#001D200.038
Achromatopsia (no color)#1717170.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #04182E

    #04182E

    oklch(20.6% 0.051 252.1)

  • #241400

    #241400

    oklch(20.8% 0.044 72.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04182E

    #04182E

    oklch(20.6% 0.051 252.1)

  • #001B24

    #001B24

    oklch(20.6% 0.038 222.7)

  • #14142E

    #14142E

    oklch(20.7% 0.051 281)

Open the analogous palette in the generator

Split complementary

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

  • #04182E

    #04182E

    oklch(20.6% 0.051 252.1)

  • #2A0E04

    #2A0E04

    oklch(20.6% 0.051 41.7)

  • #1B1800

    #1B1800

    oklch(20.6% 0.043 103.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04182E

    #04182E

    oklch(20.6% 0.051 252.1)

  • #2A0C11

    #2A0C11

    oklch(20.6% 0.05 12.4)

  • #0E1C02

    #0E1C02

    oklch(20.6% 0.052 132)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04182E

    #04182E

    oklch(20.6% 0.051 252.1)

  • #270D1E

    #270D1E

    oklch(20.8% 0.051 342.5)

  • #241400

    #241400

    oklch(20.8% 0.044 72.7)

  • #001E11

    #001E11

    oklch(20.8% 0.046 161.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04182E 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.