#120C28

Closest named color: Rich Black (#0D1B2A). oklch(18.1% 0.055 289.6), rgb(18, 12, 40).

Aa

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

About this color

#120C28 is a very dark, muted purple. In OKLCH its lightness is 18%, its chroma 0.055 and its hue 290°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.051 away. White text reads best on it, at 18.93:1.

Hue familyPurples
Lightnessvery dark (18%)
Chromamuted (0.055)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.10:1
White text18.93:1

Values

HEX#120C28
RGBrgb(18, 12, 40)
HSLhsl(253, 54%, 10%)
OKLCHoklch(18.1% 0.055 289.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 #120C28 18.93:1 AAA Lc -107.3 Preferred for body text
Black text on #120C28 1.10:1 Fails Lc 0.0 Not readable
#120C28 text on white 18.93:1 AAA Lc 105.3 Preferred for body text
#120C28 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

    #F5F5FB

    oklch(97.2% 0.008 286.3)

  2. Step 100

    100

    #E9E8F6

    oklch(93.6% 0.019 289.3)

  3. Step 200

    200

    #D8D6F0

    oklch(88.6% 0.036 289.2)

  4. Step 300

    300

    #BFBAE9

    oklch(80.9% 0.066 289.7)

  5. Step 400

    400

    #9F95DD

    oklch(70.6% 0.104 289.8)

  6. Step 500

    500

    #897AD4

    oklch(63.2% 0.133 289.7)

  7. Step 600

    600

    #7361C1

    oklch(55.6% 0.144 289.5)

  8. Step 700

    700

    #6150A7

    oklch(49.2% 0.134 289.5)

  9. Step 800

    800

    #4F4287

    oklch(42.8% 0.111 289.5)

  10. Step 900

    900

    #41386C

    oklch(37.6% 0.087 289.5)

  11. Step 950

    950 (this color)

    #120C28

    oklch(18.1% 0.055 289.6)

Export this scale for Tailwind in the Tailwind colors tool

#120C28 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)#0111290.033
Deuteranopia (no green cones)#0210270.031
Tritanopia (no blue cones)#0C12180.044
Achromatopsia (no color)#1111110.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #120C28

    #120C28

    oklch(18.1% 0.055 289.6)

  • #131300

    #131300

    oklch(18.1% 0.039 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #120C28

    #120C28

    oklch(18.1% 0.055 289.6)

  • #03112A

    #03112A

    oklch(18.2% 0.056 258.9)

  • #1C0821

    #1C0821

    oklch(18.1% 0.056 319.3)

Open the analogous palette in the generator

Split complementary

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

  • #120C28

    #120C28

    oklch(18.1% 0.055 289.6)

  • #1A0F00

    #1A0F00

    oklch(17.9% 0.037 79)

  • #041701

    #041701

    oklch(18.1% 0.054 139.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #120C28

    #120C28

    oklch(18.1% 0.055 289.6)

  • #220A00

    #220A00

    oklch(18.2% 0.048 50)

  • #00170F

    #00170F

    oklch(18.2% 0.037 168.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #120C28

    #120C28

    oklch(18.1% 0.055 289.6)

  • #250508

    #250508

    oklch(18% 0.055 18.1)

  • #131300

    #131300

    oklch(18.1% 0.039 109.8)

  • #001617

    #001617

    oklch(18.2% 0.031 198.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #120C28 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.