#08021A

Closest named color: Midnight (#03012D). oklch(12.6% 0.056 292.2), rgb(8, 2, 26).

Aa

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

About this color

#08021A is a very dark, muted purple. In OKLCH its lightness is 13%, its chroma 0.056 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.045 away. White text reads best on it, at 20.31:1.

Hue familyPurples
Lightnessvery dark (13%)
Chromamuted (0.056)
Temperaturein between
Nearest nameMidnight (#03012D)
Black text1.03:1
White text20.31:1

Values

HEX#08021A
RGBrgb(8, 2, 26)
HSLhsl(255, 86%, 5%)
OKLCHoklch(12.6% 0.056 292.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 #08021A 20.31:1 AAA Lc -107.8 Preferred for body text
Black text on #08021A 1.03:1 Fails Lc 0.0 Not readable
#08021A text on white 20.31:1 AAA Lc 105.9 Preferred for body text
#08021A text on black 1.03: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

    #F5F4FB

    oklch(97% 0.009 292.8)

  2. Step 100

    100

    #EAE8F6

    oklch(93.7% 0.019 292.6)

  3. Step 200

    200

    #D9D5F0

    oklch(88.4% 0.037 292.4)

  4. Step 300

    300

    #C1B9E8

    oklch(80.8% 0.066 292.7)

  5. Step 400

    400

    #A294DD

    oklch(70.7% 0.106 292.3)

  6. Step 500

    500

    #8C78D3

    oklch(63% 0.134 292.2)

  7. Step 600

    600

    #775FC0

    oklch(55.5% 0.146 292.4)

  8. Step 700

    700

    #644EA6

    oklch(49% 0.136 292.1)

  9. Step 800

    800

    #524187

    oklch(42.9% 0.113 292.2)

  10. Step 900

    900

    #43376C

    oklch(37.6% 0.089 292)

  11. Step 950

    950 (this color)

    #08021A

    oklch(12.6% 0.056 292.2)

Export this scale for Tailwind in the Tailwind colors tool

#08021A 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)#00061B0.031
Deuteranopia (no green cones)#0005190.030
Tritanopia (no blue cones)#04060C0.042
Achromatopsia (no color)#0606060.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #08021A

    #08021A

    oklch(12.6% 0.056 292.2)

  • #070700

    #070700

    oklch(12.4% 0.027 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #08021A

    #08021A

    oklch(12.6% 0.056 292.2)

  • #00051C

    #00051C

    oklch(12.7% 0.055 260.9)

  • #100113

    #100113

    oklch(12.8% 0.053 322.2)

Open the analogous palette in the generator

Split complementary

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

  • #08021A

    #08021A

    oklch(12.6% 0.056 292.2)

  • #0B0600

    #0B0600

    oklch(12.7% 0.026 85.9)

  • #000A00

    #000A00

    oklch(12.5% 0.043 142.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #08021A

    #08021A

    oklch(12.6% 0.056 292.2)

  • #100400

    #100400

    oklch(12.8% 0.032 55.1)

  • #000906

    #000906

    oklch(12.5% 0.024 175)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #08021A

    #08021A

    oklch(12.6% 0.056 292.2)

  • #160001

    #160001

    oklch(12.6% 0.051 22.9)

  • #070700

    #070700

    oklch(12.4% 0.027 109.8)

  • #00090A

    #00090A

    oklch(12.7% 0.022 200.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #08021A 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.