#0D051C

Closest named color: Midnight (#03012D). oklch(14.6% 0.05 297.2), rgb(13, 5, 28).

Aa

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

About this color

#0D051C is a very dark, muted purple. In OKLCH its lightness is 15%, its chroma 0.050 and its hue 297°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.049 away. White text reads best on it, at 19.89:1.

Hue familyPurples
Lightnessvery dark (15%)
Chromamuted (0.050)
Temperaturein between
Nearest nameMidnight (#03012D)
Black text1.05:1
White text19.89:1

Values

HEX#0D051C
RGBrgb(13, 5, 28)
HSLhsl(261, 70%, 6%)
OKLCHoklch(14.6% 0.05 297.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 #0D051C 19.89:1 AAA Lc -107.7 Preferred for body text
Black text on #0D051C 1.05:1 Fails Lc 0.0 Not readable
#0D051C text on white 19.89:1 AAA Lc 105.8 Preferred for body text
#0D051C text on black 1.05: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

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #EBE8F4

    oklch(93.7% 0.016 297.5)

  3. Step 200

    200

    #DBD5ED

    oklch(88.5% 0.033 297.2)

  4. Step 300

    300

    #C4B9E3

    oklch(80.9% 0.06 297)

  5. Step 400

    400

    #A794D4

    oklch(70.7% 0.094 297.6)

  6. Step 500

    500

    #9279C9

    oklch(63.2% 0.12 297.2)

  7. Step 600

    600

    #7C60B5

    oklch(55.5% 0.13 297.2)

  8. Step 700

    700

    #694F9C

    oklch(49.1% 0.121 297.3)

  9. Step 800

    800

    #55417F

    oklch(42.6% 0.101 296.8)

  10. Step 900

    900

    #463866

    oklch(37.8% 0.078 296.5)

  11. Step 950

    950 (this color)

    #0D051C

    oklch(14.6% 0.05 297.2)

Export this scale for Tailwind in the Tailwind colors tool

#0D051C 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)#00091D0.035
Deuteranopia (no green cones)#00091B0.035
Tritanopia (no blue cones)#09090F0.037
Achromatopsia (no color)#0909090.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #0D051C

    #0D051C

    oklch(14.6% 0.05 297.2)

  • #090C00

    #090C00

    oklch(14.6% 0.034 118.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0D051C

    #0D051C

    oklch(14.6% 0.05 297.2)

  • #03081F

    #03081F

    oklch(14.6% 0.051 266.7)

  • #140315

    #140315

    oklch(14.5% 0.049 325.8)

Open the analogous palette in the generator

Split complementary

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

  • #0D051C

    #0D051C

    oklch(14.6% 0.05 297.2)

  • #100900

    #100900

    oklch(14.6% 0.03 84.6)

  • #000F02

    #000F02

    oklch(14.7% 0.043 147.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0D051C

    #0D051C

    oklch(14.6% 0.05 297.2)

  • #150600

    #150600

    oklch(14.5% 0.036 56.1)

  • #000E0A

    #000E0A

    oklch(14.6% 0.027 176.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0D051C

    #0D051C

    oklch(14.6% 0.05 297.2)

  • #1B0202

    #1B0202

    oklch(14.7% 0.05 25.8)

  • #090C00

    #090C00

    oklch(14.6% 0.034 118.4)

  • #000D10

    #000D10

    oklch(14.6% 0.025 209.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #0D051C 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.