#07031B

Closest named color: Midnight (#03012D). oklch(12.9% 0.054 287), rgb(7, 3, 27).

Aa

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

About this color

#07031B is a very dark, muted purple. In OKLCH its lightness is 13%, its chroma 0.054 and its hue 287°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight (#03012D), ΔE 0.041 away. White text reads best on it, at 20.23:1.

Hue familyPurples
Lightnessvery dark (13%)
Chromamuted (0.054)
Temperaturecool
Nearest nameMidnight (#03012D)
Black text1.03:1
White text20.23:1

Values

HEX#07031B
RGBrgb(7, 3, 27)
HSLhsl(250, 80%, 6%)
OKLCHoklch(12.9% 0.054 287)

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 #07031B 20.23:1 AAA Lc -107.8 Preferred for body text
Black text on #07031B 1.03:1 Fails Lc 0.0 Not readable
#07031B text on white 20.23:1 AAA Lc 105.9 Preferred for body text
#07031B 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

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E9E8F6

    oklch(93.6% 0.019 289.3)

  3. Step 200

    200

    #D7D6F0

    oklch(88.5% 0.036 287.4)

  4. Step 300

    300

    #BDBBE8

    oklch(80.9% 0.063 286.9)

  5. Step 400

    400

    #9C97DD

    oklch(70.7% 0.101 286.8)

  6. Step 500

    500

    #857BD4

    oklch(63% 0.131 287.1)

  7. Step 600

    600

    #6F63C1

    oklch(55.6% 0.142 286.7)

  8. Step 700

    700

    #5D51A6

    oklch(48.9% 0.132 287)

  9. Step 800

    800

    #4C4387

    oklch(42.7% 0.109 286.9)

  10. Step 900

    900

    #3F396C

    oklch(37.7% 0.085 286.9)

  11. Step 950

    950 (this color)

    #07031B

    oklch(12.9% 0.054 287)

Export this scale for Tailwind in the Tailwind colors tool

#07031B 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.027
Deuteranopia (no green cones)#00061A0.026
Tritanopia (no blue cones)#02080D0.045
Achromatopsia (no color)#0606060.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #07031B

    #07031B

    oklch(12.9% 0.054 287)

  • #080800

    #080800

    oklch(13% 0.028 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #07031B

    #07031B

    oklch(12.9% 0.054 287)

  • #000619

    #000619

    oklch(12.8% 0.047 257.9)

  • #0F0115

    #0F0115

    oklch(12.8% 0.055 316.7)

Open the analogous palette in the generator

Split complementary

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

  • #07031B

    #07031B

    oklch(12.9% 0.054 287)

  • #0D0600

    #0D0600

    oklch(13% 0.027 78.1)

  • #020A00

    #020A00

    oklch(12.9% 0.039 136.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #07031B

    #07031B

    oklch(12.9% 0.054 287)

  • #120300

    #120300

    oklch(12.8% 0.036 45.5)

  • #000A05

    #000A05

    oklch(12.8% 0.027 165.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #07031B

    #07031B

    oklch(12.9% 0.054 287)

  • #170002

    #170002

    oklch(13% 0.052 18.1)

  • #080800

    #080800

    oklch(13% 0.028 109.8)

  • #000A0A

    #000A0A

    oklch(13.1% 0.022 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 #07031B, closest first.

Similar named colors

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

Use #07031B 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.