#08041F

Closest named color: Midnight (#03012D). oklch(13.9% 0.057 285), rgb(8, 4, 31).

Aa

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

About this color

#08041F is a very dark, muted purple. In OKLCH its lightness is 14%, its chroma 0.057 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.035 away. White text reads best on it, at 20.04:1.

Hue familyPurples
Lightnessvery dark (14%)
Chromamuted (0.057)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.04:1
White text20.04:1

Values

HEX#08041F
RGBrgb(8, 4, 31)
HSLhsl(249, 77%, 7%)
OKLCHoklch(13.9% 0.057 285)

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 #08041F 20.04:1 AAA Lc -107.7 Preferred for body text
Black text on #08041F 1.04:1 Fails Lc 0.0 Not readable
#08041F text on white 20.04:1 AAA Lc 105.8 Preferred for body text
#08041F 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

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E8E8F7

    oklch(93.5% 0.02 286)

  3. Step 200

    200

    #D6D6F2

    oklch(88.5% 0.038 285.6)

  4. Step 300

    300

    #BBBBEC

    oklch(80.9% 0.069 284.8)

  5. Step 400

    400

    #9997E2

    oklch(70.7% 0.109 284.5)

  6. Step 500

    500

    #827BD9

    oklch(63.1% 0.139 285.1)

  7. Step 600

    600

    #6C62C7

    oklch(55.5% 0.152 284.8)

  8. Step 700

    700

    #5B51AC

    oklch(49.2% 0.14 285)

  9. Step 800

    800

    #4A438B

    oklch(42.8% 0.116 284.8)

  10. Step 900

    900

    #3D396F

    oklch(37.7% 0.09 284.6)

  11. Step 950

    950 (this color)

    #08041F

    oklch(13.9% 0.057 285)

Export this scale for Tailwind in the Tailwind colors tool

#08041F 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)#0009200.027
Deuteranopia (no green cones)#00071E0.025
Tritanopia (no blue cones)#020A100.047
Achromatopsia (no color)#0808080.058

Harmonies

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

Complementary

The opposite hue (180°).

  • #08041F

    #08041F

    oklch(13.9% 0.057 285)

  • #0B0900

    #0B0900

    oklch(13.8% 0.029 102.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #08041F

    #08041F

    oklch(13.9% 0.057 285)

  • #00081B

    #00081B

    oklch(13.7% 0.046 255.7)

  • #110219

    #110219

    oklch(14% 0.057 313.5)

Open the analogous palette in the generator

Split complementary

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

  • #08041F

    #08041F

    oklch(13.9% 0.057 285)

  • #100700

    #100700

    oklch(13.9% 0.029 74.1)

  • #030C00

    #030C00

    oklch(13.8% 0.04 134.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #08041F

    #08041F

    oklch(13.9% 0.057 285)

  • #160400

    #160400

    oklch(14.1% 0.04 45.6)

  • #000D06

    #000D06

    oklch(14.1% 0.03 162.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #08041F

    #08041F

    oklch(13.9% 0.057 285)

  • #1A0003

    #1A0003

    oklch(13.8% 0.055 15.8)

  • #0B0900

    #0B0900

    oklch(13.8% 0.029 102.6)

  • #000C0C

    #000C0C

    oklch(14% 0.024 194.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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