#020817

Closest named color: Almost Black (#070D0D). oklch(13.6% 0.036 259.2), rgb(2, 8, 23).

Aa

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

About this color

#020817 is a very dark, muted blue. In OKLCH its lightness is 14%, its chroma 0.036 and its hue 259°. Its hue sits on the cool side of the wheel. The nearest named color is Almost Black (#070D0D), ΔE 0.037 away. White text reads best on it, at 20.00:1.

Hue familyBlues
Lightnessvery dark (14%)
Chromamuted (0.036)
Temperaturecool
Nearest nameAlmost Black (#070D0D)
Black text1.04:1
White text20.00:1

Values

HEX#020817
RGBrgb(2, 8, 23)
HSLhsl(223, 84%, 5%)
OKLCHoklch(13.6% 0.036 259.2)

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 #020817 20.00:1 AAA Lc -107.7 Preferred for body text
Black text on #020817 1.04:1 Fails Lc 0.0 Not readable
#020817 text on white 20.00:1 AAA Lc 105.9 Preferred for body text
#020817 text on black 1.04: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

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #D0DAE9

    oklch(88.5% 0.023 258.4)

  4. Step 300

    300

    #B0C2DD

    oklch(80.9% 0.043 258.4)

  5. Step 400

    400

    #87A2CC

    oklch(70.7% 0.069 259.1)

  6. Step 500

    500

    #698ABF

    oklch(63% 0.089 259.6)

  7. Step 600

    600

    #5174AB

    oklch(55.7% 0.095 259.2)

  8. Step 700

    700

    #416193

    oklch(49.1% 0.089 259)

  9. Step 800

    800

    #364F77

    oklch(42.6% 0.074 259.5)

  10. Step 900

    900

    #2F4260

    oklch(37.7% 0.057 259.3)

  11. Step 950

    950 (this color)

    #020817

    oklch(13.6% 0.036 259.2)

Export this scale for Tailwind in the Tailwind colors tool

#020817 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)#0309180.006
Deuteranopia (no green cones)#0107170.006
Tritanopia (no blue cones)#000B0E0.027
Achromatopsia (no color)#0808080.036

Harmonies

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

Complementary

The opposite hue (180°).

  • #020817

    #020817

    oklch(13.6% 0.036 259.2)

  • #0E0700

    #0E0700

    oklch(13.6% 0.028 80.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #020817

    #020817

    oklch(13.6% 0.036 259.2)

  • #000A11

    #000A11

    oklch(13.6% 0.027 229.8)

  • #080616

    #080616

    oklch(13.7% 0.035 287.6)

Open the analogous palette in the generator

Split complementary

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

  • #020817

    #020817

    oklch(13.6% 0.036 259.2)

  • #140400

    #140400

    oklch(13.7% 0.037 48.1)

  • #090900

    #090900

    oklch(13.5% 0.029 109.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #020817

    #020817

    oklch(13.6% 0.036 259.2)

  • #140304

    #140304

    oklch(13.5% 0.036 17.7)

  • #020C01

    #020C01

    oklch(13.7% 0.038 140.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #020817

    #020817

    oklch(13.6% 0.036 259.2)

  • #13030B

    #13030B

    oklch(13.7% 0.038 348.2)

  • #0E0700

    #0E0700

    oklch(13.6% 0.028 80.9)

  • #000C07

    #000C07

    oklch(13.7% 0.027 169.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #020817 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.