#0D031B

Closest named color: Midnight (#03012D). oklch(13.8% 0.054 301.1), rgb(13, 3, 27).

Aa

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

About this color

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

Hue familyPurples
Lightnessvery dark (14%)
Chromamuted (0.054)
Temperaturein between
Nearest nameMidnight (#03012D)
Black text1.04:1
White text20.07:1

Values

HEX#0D031B
RGBrgb(13, 3, 27)
HSLhsl(265, 80%, 6%)
OKLCHoklch(13.8% 0.054 301.1)

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

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #ECE7F5

    oklch(93.6% 0.019 302.2)

  3. Step 200

    200

    #DDD4EE

    oklch(88.5% 0.037 301.4)

  4. Step 300

    300

    #C7B8E4

    oklch(80.9% 0.063 300.6)

  5. Step 400

    400

    #AB91D7

    oklch(70.6% 0.104 300.8)

  6. Step 500

    500

    #9775CC

    oklch(63.1% 0.131 300.7)

  7. Step 600

    600

    #825CB9

    oklch(55.6% 0.143 300.7)

  8. Step 700

    700

    #6E4B9F

    oklch(49.1% 0.133 300.9)

  9. Step 800

    800

    #5A3E81

    oklch(42.7% 0.11 301.2)

  10. Step 900

    900

    #4A3567

    oklch(37.6% 0.086 301.8)

  11. Step 950

    950 (this color)

    #0D031B

    oklch(13.8% 0.054 301.1)

Export this scale for Tailwind in the Tailwind colors tool

#0D031B 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)#00071C0.039
Deuteranopia (no green cones)#00071A0.039
Tritanopia (no blue cones)#0A070D0.040
Achromatopsia (no color)#0808080.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #0D031B

    #0D031B

    oklch(13.8% 0.054 301.1)

  • #070B00

    #070B00

    oklch(14% 0.034 122)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0D031B

    #0D031B

    oklch(13.8% 0.054 301.1)

  • #03061F

    #03061F

    oklch(13.9% 0.055 269.5)

  • #140113

    #140113

    oklch(13.7% 0.056 329.9)

Open the analogous palette in the generator

Split complementary

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

  • #0D031B

    #0D031B

    oklch(13.8% 0.054 301.1)

  • #0D0800

    #0D0800

    oklch(13.8% 0.028 90.3)

  • #000D03

    #000D03

    oklch(13.9% 0.037 151.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0D031B

    #0D031B

    oklch(13.8% 0.054 301.1)

  • #120600

    #120600

    oklch(13.9% 0.032 62.6)

  • #000C09

    #000C09

    oklch(13.8% 0.025 179.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0D031B

    #0D031B

    oklch(13.8% 0.054 301.1)

  • #1A0100

    #1A0100

    oklch(14% 0.053 32.2)

  • #070B00

    #070B00

    oklch(14% 0.034 122)

  • #000B0E

    #000B0E

    oklch(13.7% 0.024 211)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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