#1F072C

Closest named color: Midnight Purple (#280137). oklch(19.3% 0.074 311.3), rgb(31, 7, 44).

Aa

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

About this color

#1F072C is a very dark, moderately saturated purple. In OKLCH its lightness is 19%, its chroma 0.074 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.032 away. White text reads best on it, at 18.66:1.

Hue familyPurples
Lightnessvery dark (19%)
Chromamoderately saturated (0.074)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.12:1
White text18.66:1

Values

HEX#1F072C
RGBrgb(31, 7, 44)
HSLhsl(279, 73%, 10%)
OKLCHoklch(19.3% 0.074 311.3)

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 #1F072C 18.66:1 AAA Lc -107.0 Preferred for body text
Black text on #1F072C 1.12:1 Fails Lc 0.0 Not readable
#1F072C text on white 18.66:1 AAA Lc 104.9 Preferred for body text
#1F072C text on black 1.12: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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE5F7

    oklch(93.5% 0.026 310.4)

  3. Step 200

    200

    #E4D1F1

    oklch(88.6% 0.048 311.7)

  4. Step 300

    300

    #D3B1EA

    oklch(80.9% 0.087 311.4)

  5. Step 400

    400

    #BD86E0

    oklch(70.8% 0.139 311.3)

  6. Step 500

    500

    #AC64D7

    oklch(63.1% 0.178 311.2)

  7. Step 600

    600

    #9747C4

    oklch(55.6% 0.193 311.1)

  8. Step 700

    700

    #8137A9

    oklch(49% 0.18 311.4)

  9. Step 800

    800

    #692F89

    oklch(42.7% 0.149 311.4)

  10. Step 900

    900

    #552B6E

    oklch(37.7% 0.117 311)

  11. Step 950

    950 (this color)

    #1F072C

    oklch(19.3% 0.074 311.3)

Export this scale for Tailwind in the Tailwind colors tool

#1F072C 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)#00112D0.065
Deuteranopia (no green cones)#04132B0.060
Tritanopia (no blue cones)#1D0F180.051
Achromatopsia (no color)#1212120.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F072C

    #1F072C

    oklch(19.3% 0.074 311.3)

  • #0B1900

    #0B1900

    oklch(19.3% 0.053 131.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F072C

    #1F072C

    oklch(19.3% 0.074 311.3)

  • #110D34

    #110D34

    oklch(19.4% 0.074 281.7)

  • #28031E

    #28031E

    oklch(19.2% 0.073 340.7)

Open the analogous palette in the generator

Split complementary

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

  • #1F072C

    #1F072C

    oklch(19.3% 0.074 311.3)

  • #181500

    #181500

    oklch(19.3% 0.041 102.8)

  • #001A0E

    #001A0E

    oklch(19.2% 0.043 161.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F072C

    #1F072C

    oklch(19.3% 0.074 311.3)

  • #201100

    #201100

    oklch(19.4% 0.042 71.9)

  • #001918

    #001918

    oklch(19.3% 0.033 191.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F072C

    #1F072C

    oklch(19.3% 0.074 311.3)

  • #290800

    #290800

    oklch(19.2% 0.059 40.9)

  • #0B1900

    #0B1900

    oklch(19.3% 0.053 131.8)

  • #001820

    #001820

    oklch(19.4% 0.036 221.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1F072C 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.