#1F0B37

Closest named color: Midnight Purple (#280137). oklch(21% 0.081 300.3), rgb(31, 11, 55).

Aa

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

About this color

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

Hue familyPurples
Lightnessvery dark (21%)
Chromamoderately saturated (0.081)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.16:1
White text18.08:1

Values

HEX#1F0B37
RGBrgb(31, 11, 55)
HSLhsl(267, 67%, 13%)
OKLCHoklch(21% 0.081 300.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 #1F0B37 18.08:1 AAA Lc -106.7 Preferred for body text
Black text on #1F0B37 1.16:1 Fails Lc 0.0 Not readable
#1F0B37 text on white 18.08:1 AAA Lc 104.5 Preferred for body text
#1F0B37 text on black 1.16: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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #ECE6FA

    oklch(93.6% 0.027 299.5)

  3. Step 200

    200

    #DED2F8

    oklch(88.5% 0.053 299.7)

  4. Step 300

    300

    #CAB3F6

    oklch(81% 0.096 300)

  5. Step 400

    400

    #B088F1

    oklch(70.7% 0.153 300.1)

  6. Step 500

    500

    #9E65EC

    oklch(63.1% 0.197 300.3)

  7. Step 600

    600

    #8A47DA

    oklch(55.6% 0.214 300.4)

  8. Step 700

    700

    #7537BE

    oklch(49.1% 0.199 300)

  9. Step 800

    800

    #5F2F99

    oklch(42.7% 0.164 300.2)

  10. Step 900

    900

    #4E2C7A

    oklch(37.8% 0.128 300.5)

  11. Step 950

    950 (this color)

    #1F0B37

    oklch(21% 0.081 300.3)

Export this scale for Tailwind in the Tailwind colors tool

#1F0B37 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)#0016380.058
Deuteranopia (no green cones)#0016360.058
Tritanopia (no blue cones)#1A151F0.061
Achromatopsia (no color)#1616160.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F0B37

    #1F0B37

    oklch(21% 0.081 300.3)

  • #151B00

    #151B00

    oklch(20.8% 0.05 120.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F0B37

    #1F0B37

    oklch(21% 0.081 300.3)

  • #0B123D

    #0B123D

    oklch(20.9% 0.082 270.4)

  • #2B0529

    #2B0529

    oklch(20.9% 0.081 330.3)

Open the analogous palette in the generator

Split complementary

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

  • #1F0B37

    #1F0B37

    oklch(21% 0.081 300.3)

  • #201700

    #201700

    oklch(21% 0.043 89.6)

  • #001F09

    #001F09

    oklch(20.9% 0.057 150.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F0B37

    #1F0B37

    oklch(21% 0.081 300.3)

  • #281200

    #281200

    oklch(21% 0.049 60.9)

  • #001E19

    #001E19

    oklch(21.1% 0.038 179.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F0B37

    #1F0B37

    oklch(21% 0.081 300.3)

  • #350201

    #350201

    oklch(21% 0.081 29.4)

  • #151B00

    #151B00

    oklch(20.8% 0.05 120.4)

  • #001D22

    #001D22

    oklch(21.2% 0.037 210.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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