#08172E

Closest named color: Rich Black (#0D1B2A). oklch(20.6% 0.05 258.6), rgb(8, 23, 46).

Aa

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

About this color

#08172E is a very dark, muted blue. In OKLCH its lightness is 21%, its chroma 0.050 and its hue 259°. 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.91:1.

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

Values

HEX#08172E
RGBrgb(8, 23, 46)
HSLhsl(216, 70%, 11%)
OKLCHoklch(20.6% 0.05 258.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 #08172E 17.91:1 AAA Lc -106.8 Preferred for body text
Black text on #08172E 1.17:1 Fails Lc 0.0 Not readable
#08172E text on white 17.91:1 AAA Lc 104.6 Preferred for body text
#08172E 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

    #E3EAF6

    oklch(93.5% 0.018 261.3)

  3. Step 200

    200

    #CCDAF0

    oklch(88.5% 0.034 259.4)

  4. Step 300

    300

    #A9C2E8

    oklch(80.8% 0.061 258.7)

  5. Step 400

    400

    #7CA2DC

    oklch(70.7% 0.095 258.6)

  6. Step 500

    500

    #5A8AD3

    oklch(63.2% 0.122 258.5)

  7. Step 600

    600

    #3F72C0

    oklch(55.5% 0.134 258.7)

  8. Step 700

    700

    #315FA6

    oklch(49% 0.125 258.9)

  9. Step 800

    800

    #2A4E86

    oklch(42.7% 0.102 259)

  10. Step 900

    900

    #26416B

    oklch(37.6% 0.08 258.9)

  11. Step 950

    950 (this color)

    #08172E

    oklch(20.6% 0.05 258.6)

Export this scale for Tailwind in the Tailwind colors tool

#08172E 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)#0C192F0.010
Deuteranopia (no green cones)#07152E0.007
Tritanopia (no blue cones)#001C200.039
Achromatopsia (no color)#1717170.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #08172E

    #08172E

    oklch(20.6% 0.05 258.6)

  • #221500

    #221500

    oklch(20.8% 0.043 79.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #08172E

    #08172E

    oklch(20.6% 0.05 258.6)

  • #001B26

    #001B26

    oklch(20.7% 0.04 227.7)

  • #17132D

    #17132D

    oklch(20.7% 0.05 288.3)

Open the analogous palette in the generator

Split complementary

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

  • #08172E

    #08172E

    oklch(20.6% 0.05 258.6)

  • #290F02

    #290F02

    oklch(20.6% 0.05 48.7)

  • #191900

    #191900

    oklch(20.7% 0.045 109.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #08172E

    #08172E

    oklch(20.6% 0.05 258.6)

  • #2A0C0E

    #2A0C0E

    oklch(20.5% 0.05 18.6)

  • #0A1D05

    #0A1D05

    oklch(20.7% 0.051 138.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #08172E

    #08172E

    oklch(20.6% 0.05 258.6)

  • #270C1B

    #270C1B

    oklch(20.4% 0.051 348)

  • #221500

    #221500

    oklch(20.8% 0.043 79.6)

  • #001D14

    #001D14

    oklch(20.5% 0.041 169.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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