#05171F

Closest named color: Rich Navy (#001219). oklch(19.3% 0.029 228.8), rgb(5, 23, 31).

Aa

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

About this color

#05171F is a very dark close to neutral grey. In OKLCH its lightness is 19%, its chroma 0.029. It has too little chroma to lean warm or cool. The nearest named color is Rich Navy (#001219), ΔE 0.025 away. White text reads best on it, at 18.27:1.

Hue familyNeutrals
Lightnessvery dark (19%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameRich Navy (#001219)
Black text1.14:1
White text18.27:1

Values

HEX#05171F
RGBrgb(5, 23, 31)
HSLhsl(198, 72%, 7%)
OKLCHoklch(19.3% 0.029 228.8)

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 #05171F 18.27:1 AAA Lc -107.0 Preferred for body text
Black text on #05171F 1.14:1 Fails Lc 0.0 Not readable
#05171F text on white 18.27:1 AAA Lc 104.9 Preferred for body text
#05171F text on black 1.14: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

    #E3EBEF

    oklch(93.5% 0.01 228.9)

  3. Step 200

    200

    #CDDCE3

    oklch(88.5% 0.019 227.3)

  4. Step 300

    300

    #AAC5D3

    oklch(80.8% 0.035 230.3)

  5. Step 400

    400

    #7CA8BC

    oklch(70.7% 0.056 227.7)

  6. Step 500

    500

    #5992AC

    oklch(63.1% 0.071 228.9)

  7. Step 600

    600

    #3D7C97

    oklch(55.6% 0.077 228.5)

  8. Step 700

    700

    #2F6881

    oklch(49% 0.072 229.4)

  9. Step 800

    800

    #285569

    oklch(42.7% 0.059 229.4)

  10. Step 900

    900

    #254655

    oklch(37.6% 0.046 229.2)

  11. Step 950

    950 (this color)

    #05171F

    oklch(19.3% 0.029 228.8)

Export this scale for Tailwind in the Tailwind colors tool

#05171F 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)#13161F0.021
Deuteranopia (no green cones)#0F141F0.018
Tritanopia (no blue cones)#00191A0.017
Achromatopsia (no color)#1515150.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #05171F

    #05171F

    oklch(19.3% 0.029 228.8)

  • #1F1008

    #1F1008

    oklch(19.2% 0.03 48.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #05171F

    #05171F

    oklch(19.3% 0.029 228.8)

  • #021819

    #021819

    oklch(19.1% 0.03 198.9)

  • #0C1522

    #0C1522

    oklch(19.4% 0.03 257.5)

Open the analogous palette in the generator

Split complementary

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

  • #05171F

    #05171F

    oklch(19.3% 0.029 228.8)

  • #200F0F

    #200F0F

    oklch(19.3% 0.029 20.1)

  • #1C1305

    #1C1305

    oklch(19.4% 0.03 78.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #05171F

    #05171F

    oklch(19.3% 0.029 228.8)

  • #1E0F17

    #1E0F17

    oklch(19.3% 0.029 346.9)

  • #161606

    #161606

    oklch(19.5% 0.029 108.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #05171F

    #05171F

    oklch(19.3% 0.029 228.8)

  • #1A101D

    #1A101D

    oklch(19.3% 0.03 318.2)

  • #1F1008

    #1F1008

    oklch(19.2% 0.03 48.8)

  • #0E180B

    #0E180B

    oklch(19.5% 0.029 138.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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