#08172B

Closest named color: Rich Black (#0D1B2A). oklch(20.4% 0.045 256.1), rgb(8, 23, 43).

Aa

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

About this color

#08172B is a very dark, muted blue. In OKLCH its lightness is 20%, its chroma 0.045 and its hue 256°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.017 away. White text reads best on it, at 17.98:1.

Hue familyBlues
Lightnessvery dark (20%)
Chromamuted (0.045)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.16:1
White text17.98:1

Values

HEX#08172B
RGBrgb(8, 23, 43)
HSLhsl(214, 69%, 10%)
OKLCHoklch(20.4% 0.045 256.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 #08172B 17.98:1 AAA Lc -106.8 Preferred for body text
Black text on #08172B 1.16:1 Fails Lc 0.0 Not readable
#08172B text on white 17.98:1 AAA Lc 104.6 Preferred for body text
#08172B text on black 1.16: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

    #F2F6FA

    oklch(97.1% 0.007 247.9)

  2. Step 100

    100

    #E3EBF4

    oklch(93.7% 0.015 251.2)

  3. Step 200

    200

    #CDDAED

    oklch(88.4% 0.03 257.8)

  4. Step 300

    300

    #AAC3E4

    oklch(81% 0.054 255.4)

  5. Step 400

    400

    #7DA3D6

    oklch(70.7% 0.086 255.9)

  6. Step 500

    500

    #5C8BCB

    oklch(63.1% 0.11 256.4)

  7. Step 600

    600

    #4174B8

    oklch(55.6% 0.12 256.2)

  8. Step 700

    700

    #33619E

    oklch(49% 0.111 256.2)

  9. Step 800

    800

    #2B5080

    oklch(42.8% 0.091 255.7)

  10. Step 900

    900

    #274267

    oklch(37.6% 0.072 256.6)

  11. Step 950

    950 (this color)

    #08172B

    oklch(20.4% 0.045 256.1)

Export this scale for Tailwind in the Tailwind colors tool

#08172B 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)#0E182C0.010
Deuteranopia (no green cones)#09152B0.007
Tritanopia (no blue cones)#001C1E0.038
Achromatopsia (no color)#1717170.045

Harmonies

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

Complementary

The opposite hue (180°).

  • #08172B

    #08172B

    oklch(20.4% 0.045 256.1)

  • #221400

    #221400

    oklch(20.5% 0.043 76.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #08172B

    #08172B

    oklch(20.4% 0.045 256.1)

  • #001A24

    #001A24

    oklch(20.3% 0.039 225.9)

  • #15132A

    #15132A

    oklch(20.3% 0.045 285.6)

Open the analogous palette in the generator

Split complementary

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

  • #08172B

    #08172B

    oklch(20.4% 0.045 256.1)

  • #270F04

    #270F04

    oklch(20.3% 0.046 46.2)

  • #1A1800

    #1A1800

    oklch(20.5% 0.044 105.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #08172B

    #08172B

    oklch(20.4% 0.045 256.1)

  • #280D10

    #280D10

    oklch(20.4% 0.045 15.1)

  • #0D1B06

    #0D1B06

    oklch(20.3% 0.044 135.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #08172B

    #08172B

    oklch(20.4% 0.045 256.1)

  • #250D1B

    #250D1B

    oklch(20.3% 0.046 346)

  • #221400

    #221400

    oklch(20.5% 0.043 76.7)

  • #001D12

    #001D12

    oklch(20.4% 0.043 165)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #08172B 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.