#1F072D

Closest named color: Midnight Purple (#280137). oklch(19.4% 0.075 310.3), rgb(31, 7, 45).

Aa

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

About this color

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

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

Values

HEX#1F072D
RGBrgb(31, 7, 45)
HSLhsl(278, 73%, 10%)
OKLCHoklch(19.4% 0.075 310.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 #1F072D 18.64:1 AAA Lc -107.0 Preferred for body text
Black text on #1F072D 1.12:1 Fails Lc 0.0 Not readable
#1F072D text on white 18.64:1 AAA Lc 104.9 Preferred for body text
#1F072D 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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #EFE5F7

    oklch(93.5% 0.026 310.4)

  3. Step 200

    200

    #E3D1F2

    oklch(88.5% 0.049 309.7)

  4. Step 300

    300

    #D2B1EC

    oklch(80.9% 0.089 309.8)

  5. Step 400

    400

    #BC86E2

    oklch(70.8% 0.141 310.2)

  6. Step 500

    500

    #AB63D9

    oklch(63% 0.182 310.4)

  7. Step 600

    600

    #9746C7

    oklch(55.6% 0.198 310.4)

  8. Step 700

    700

    #8037AC

    oklch(49.1% 0.183 309.9)

  9. Step 800

    800

    #682E8B

    oklch(42.6% 0.152 310.2)

  10. Step 900

    900

    #552B6F

    oklch(37.7% 0.118 310.5)

  11. Step 950

    950 (this color)

    #1F072D

    oklch(19.4% 0.075 310.3)

Export this scale for Tailwind in the Tailwind colors tool

#1F072D 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)#00122E0.065
Deuteranopia (no green cones)#03132C0.061
Tritanopia (no blue cones)#1D0F190.051
Achromatopsia (no color)#1313130.075

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F072D

    #1F072D

    oklch(19.4% 0.075 310.3)

  • #0C1900

    #0C1900

    oklch(19.4% 0.053 130.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F072D

    #1F072D

    oklch(19.4% 0.075 310.3)

  • #100D35

    #100D35

    oklch(19.4% 0.075 280.1)

  • #29031F

    #29031F

    oklch(19.5% 0.075 340.4)

Open the analogous palette in the generator

Split complementary

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

  • #1F072D

    #1F072D

    oklch(19.4% 0.075 310.3)

  • #191500

    #191500

    oklch(19.5% 0.041 100.4)

  • #001B0E

    #001B0E

    oklch(19.6% 0.044 160.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F072D

    #1F072D

    oklch(19.4% 0.075 310.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.

  • #1F072D

    #1F072D

    oklch(19.4% 0.075 310.3)

  • #2A0800

    #2A0800

    oklch(19.5% 0.061 40.4)

  • #0C1900

    #0C1900

    oklch(19.4% 0.053 130.6)

  • #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 #1F072D, closest first.

Similar named colors

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

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