#04151F

Closest named color: Rich Navy (#001219). oklch(18.6% 0.032 235.6), rgb(4, 21, 31).

Aa

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

About this color

#04151F is a very dark, muted blue. In OKLCH its lightness is 19%, its chroma 0.032 and its hue 236°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.019 away. White text reads best on it, at 18.54:1.

Hue familyBlues
Lightnessvery dark (19%)
Chromamuted (0.032)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.13:1
White text18.54:1

Values

HEX#04151F
RGBrgb(4, 21, 31)
HSLhsl(202, 77%, 7%)
OKLCHoklch(18.6% 0.032 235.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 #04151F 18.54:1 AAA Lc -107.1 Preferred for body text
Black text on #04151F 1.13:1 Fails Lc 0.0 Not readable
#04151F text on white 18.54:1 AAA Lc 105.0 Preferred for body text
#04151F text on black 1.13: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

    #F2F6F8

    oklch(97.1% 0.005 228.8)

  2. Step 100

    100

    #E3EBF0

    oklch(93.5% 0.011 234.8)

  3. Step 200

    200

    #CDDCE5

    oklch(88.6% 0.02 233.9)

  4. Step 300

    300

    #AAC5D6

    oklch(80.9% 0.038 235.6)

  5. Step 400

    400

    #7CA7C1

    oklch(70.7% 0.06 235.3)

  6. Step 500

    500

    #5A91B1

    oklch(63.1% 0.076 235.3)

  7. Step 600

    600

    #3E7B9D

    oklch(55.7% 0.082 235.3)

  8. Step 700

    700

    #2F6786

    oklch(49% 0.077 235.6)

  9. Step 800

    800

    #28546D

    oklch(42.6% 0.064 235.9)

  10. Step 900

    900

    #254658

    oklch(37.7% 0.05 234)

  11. Step 950

    950 (this color)

    #04151F

    oklch(18.6% 0.032 235.6)

Export this scale for Tailwind in the Tailwind colors tool

#04151F 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)#10151F0.019
Deuteranopia (no green cones)#0C121F0.016
Tritanopia (no blue cones)#0018180.022
Achromatopsia (no color)#1313130.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #04151F

    #04151F

    oklch(18.6% 0.032 235.6)

  • #1E0F05

    #1E0F05

    oklch(18.7% 0.032 55.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04151F

    #04151F

    oklch(18.6% 0.032 235.6)

  • #00171A

    #00171A

    oklch(18.7% 0.032 205.8)

  • #0C1221

    #0C1221

    oklch(18.5% 0.032 266.7)

Open the analogous palette in the generator

Split complementary

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

  • #04151F

    #04151F

    oklch(18.6% 0.032 235.6)

  • #1F0D0C

    #1F0D0C

    oklch(18.6% 0.031 23.9)

  • #191203

    #191203

    oklch(18.7% 0.031 86.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04151F

    #04151F

    oklch(18.6% 0.032 235.6)

  • #1E0D13

    #1E0D13

    oklch(18.7% 0.031 357.9)

  • #121504

    #121504

    oklch(18.7% 0.033 117.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04151F

    #04151F

    oklch(18.6% 0.032 235.6)

  • #1A0E1B

    #1A0E1B

    oklch(18.7% 0.032 324.1)

  • #1E0F05

    #1E0F05

    oklch(18.7% 0.032 55.5)

  • #09170A

    #09170A

    oklch(18.7% 0.033 145.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04151F 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.