#18102C

Closest named color: Rich Black (#0D1B2A). oklch(20.1% 0.054 294.1), rgb(24, 16, 44).

Aa

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

About this color

#18102C is a very dark, muted purple. In OKLCH its lightness is 20%, its chroma 0.054 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.041 away. White text reads best on it, at 18.27:1.

Hue familyPurples
Lightnessvery dark (20%)
Chromamuted (0.054)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.14:1
White text18.27:1

Values

HEX#18102C
RGBrgb(24, 16, 44)
HSLhsl(257, 47%, 12%)
OKLCHoklch(20.1% 0.054 294.1)

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 #18102C 18.27:1 AAA Lc -107.0 Preferred for body text
Black text on #18102C 1.14:1 Fails Lc 0.0 Not readable
#18102C text on white 18.27:1 AAA Lc 104.8 Preferred for body text
#18102C text on black 1.14: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

    #F5F4FB

    oklch(97% 0.009 292.8)

  2. Step 100

    100

    #EAE8F5

    oklch(93.6% 0.018 293.1)

  3. Step 200

    200

    #DAD5EF

    oklch(88.5% 0.036 294.5)

  4. Step 300

    300

    #C2B9E7

    oklch(80.8% 0.065 293.9)

  5. Step 400

    400

    #A494DB

    oklch(70.7% 0.103 293.9)

  6. Step 500

    500

    #8F78D1

    oklch(63.2% 0.132 294.2)

  7. Step 600

    600

    #795FBE

    oklch(55.6% 0.144 293.8)

  8. Step 700

    700

    #664EA4

    oklch(49.1% 0.134 293.8)

  9. Step 800

    800

    #534085

    oklch(42.6% 0.111 293.8)

  10. Step 900

    900

    #45376A

    oklch(37.7% 0.086 294.6)

  11. Step 950

    950 (this color)

    #18102C

    oklch(20.1% 0.054 294.1)

Export this scale for Tailwind in the Tailwind colors tool

#18102C 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)#06152D0.033
Deuteranopia (no green cones)#07142B0.031
Tritanopia (no blue cones)#13161B0.046
Achromatopsia (no color)#1515150.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #18102C

    #18102C

    oklch(20.1% 0.054 294.1)

  • #161800

    #161800

    oklch(20% 0.045 113.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #18102C

    #18102C

    oklch(20.1% 0.054 294.1)

  • #09152F

    #09152F

    oklch(20.2% 0.055 263.6)

  • #220C24

    #220C24

    oklch(20.1% 0.055 324.2)

Open the analogous palette in the generator

Split complementary

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

  • #18102C

    #18102C

    oklch(20.1% 0.054 294.1)

  • #1F1400

    #1F1400

    oklch(20% 0.041 83.2)

  • #041C05

    #041C05

    oklch(20% 0.054 144.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #18102C

    #18102C

    oklch(20.1% 0.054 294.1)

  • #270E00

    #270E00

    oklch(20% 0.051 53.1)

  • #001C15

    #001C15

    oklch(20.2% 0.039 173.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #18102C

    #18102C

    oklch(20.1% 0.054 294.1)

  • #2A0A09

    #2A0A09

    oklch(20% 0.054 25)

  • #161800

    #161800

    oklch(20% 0.045 113.8)

  • #001B1D

    #001B1D

    oklch(20.2% 0.034 201.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #18102C 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.