#18072A

Closest named color: Midnight Purple (#280137). oklch(18.1% 0.069 302.5), rgb(24, 7, 42).

Aa

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

About this color

#18072A is a very dark, muted purple. In OKLCH its lightness is 18%, its chroma 0.069 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Midnight Purple (#280137), ΔE 0.046 away. White text reads best on it, at 19.04:1.

Hue familyPurples
Lightnessvery dark (18%)
Chromamuted (0.069)
Temperaturein between
Nearest nameMidnight Purple (#280137)
Black text1.10:1
White text19.04:1

Values

HEX#18072A
RGBrgb(24, 7, 42)
HSLhsl(269, 71%, 10%)
OKLCHoklch(18.1% 0.069 302.5)

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 #18072A 19.04:1 AAA Lc -107.3 Preferred for body text
Black text on #18072A 1.10:1 Fails Lc 0.0 Not readable
#18072A text on white 19.04:1 AAA Lc 105.2 Preferred for body text
#18072A text on black 1.10: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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EDE6F7

    oklch(93.5% 0.024 304.5)

  3. Step 200

    200

    #DFD3F2

    oklch(88.6% 0.044 303.1)

  4. Step 300

    300

    #CAB5ED

    oklch(81% 0.081 301.8)

  5. Step 400

    400

    #B08CE3

    oklch(70.7% 0.129 302.3)

  6. Step 500

    500

    #9E6CDB

    oklch(63.1% 0.166 302.7)

  7. Step 600

    600

    #8951C9

    oklch(55.6% 0.181 302.4)

  8. Step 700

    700

    #7441AD

    oklch(49.1% 0.167 302.4)

  9. Step 800

    800

    #5F368C

    oklch(42.7% 0.139 302.9)

  10. Step 900

    900

    #4D3070

    oklch(37.7% 0.108 302.4)

  11. Step 950

    950 (this color)

    #18072A

    oklch(18.1% 0.069 302.5)

Export this scale for Tailwind in the Tailwind colors tool

#18072A 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)#00102B0.051
Deuteranopia (no green cones)#0010290.052
Tritanopia (no blue cones)#140F170.051
Achromatopsia (no color)#1010100.069

Harmonies

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

Complementary

The opposite hue (180°).

  • #18072A

    #18072A

    oklch(18.1% 0.069 302.5)

  • #0E1500

    #0E1500

    oklch(18.2% 0.045 123.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #18072A

    #18072A

    oklch(18.1% 0.069 302.5)

  • #090D2F

    #090D2F

    oklch(18.1% 0.067 272.6)

  • #22031E

    #22031E

    oklch(18% 0.069 333.5)

Open the analogous palette in the generator

Split complementary

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

  • #18072A

    #18072A

    oklch(18.1% 0.069 302.5)

  • #171100

    #171100

    oklch(18% 0.037 93.8)

  • #001707

    #001707

    oklch(17.9% 0.047 152.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #18072A

    #18072A

    oklch(18.1% 0.069 302.5)

  • #1E0D00

    #1E0D00

    oklch(18.1% 0.041 63.6)

  • #001613

    #001613

    oklch(18% 0.032 183.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #18072A

    #18072A

    oklch(18.1% 0.069 302.5)

  • #290200

    #290200

    oklch(18.1% 0.068 32)

  • #0E1500

    #0E1500

    oklch(18.2% 0.045 123.7)

  • #00151A

    #00151A

    oklch(18% 0.032 213.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #18072A 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.