#1F0B38

Closest named color: Midnight Purple (#280137). oklch(21.1% 0.083 299.6), rgb(31, 11, 56).

Aa

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

About this color

#1F0B38 is a very dark, moderately saturated purple. In OKLCH its lightness is 21%, its chroma 0.083 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.05:1.

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

Values

HEX#1F0B38
RGBrgb(31, 11, 56)
HSLhsl(267, 67%, 13%)
OKLCHoklch(21.1% 0.083 299.6)

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 #1F0B38 18.05:1 AAA Lc -106.7 Preferred for body text
Black text on #1F0B38 1.16:1 Fails Lc 0.0 Not readable
#1F0B38 text on white 18.05:1 AAA Lc 104.5 Preferred for body text
#1F0B38 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

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #ECE6FB

    oklch(93.6% 0.029 298.9)

  3. Step 200

    200

    #DED2F9

    oklch(88.6% 0.054 299.3)

  4. Step 300

    300

    #CAB3F7

    oklch(81% 0.097 299.7)

  5. Step 400

    400

    #B087F3

    oklch(70.6% 0.157 299.9)

  6. Step 500

    500

    #9D65EF

    oklch(63.1% 0.2 299.3)

  7. Step 600

    600

    #8946DD

    oklch(55.6% 0.218 299.5)

  8. Step 700

    700

    #7536C0

    oklch(49.2% 0.203 299.7)

  9. Step 800

    800

    #5F2E9B

    oklch(42.7% 0.168 299.8)

  10. Step 900

    900

    #4D2B7B

    oklch(37.6% 0.131 299.7)

  11. Step 950

    950 (this color)

    #1F0B38

    oklch(21.1% 0.083 299.6)

Export this scale for Tailwind in the Tailwind colors tool

#1F0B38 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)#0016390.057
Deuteranopia (no green cones)#0016370.058
Tritanopia (no blue cones)#1916200.063
Achromatopsia (no color)#1616160.083

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F0B38

    #1F0B38

    oklch(21.1% 0.083 299.6)

  • #161B00

    #161B00

    oklch(20.9% 0.049 118.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F0B38

    #1F0B38

    oklch(21.1% 0.083 299.6)

  • #0A133E

    #0A133E

    oklch(21.2% 0.083 269)

  • #2C052A

    #2C052A

    oklch(21.2% 0.082 330.2)

Open the analogous palette in the generator

Split complementary

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

  • #1F0B38

    #1F0B38

    oklch(21.1% 0.083 299.6)

  • #201700

    #201700

    oklch(21% 0.043 89.6)

  • #002008

    #002008

    oklch(21.3% 0.06 149.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F0B38

    #1F0B38

    oklch(21.1% 0.083 299.6)

  • #291200

    #291200

    oklch(21.2% 0.05 59.5)

  • #001E19

    #001E19

    oklch(21.1% 0.038 179.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F0B38

    #1F0B38

    oklch(21.1% 0.083 299.6)

  • #360201

    #360201

    oklch(21.2% 0.083 29.4)

  • #161B00

    #161B00

    oklch(20.9% 0.049 118.7)

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

Similar named colors

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

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