#140C27

Closest named color: Rich Black (#0D1B2A). oklch(18.3% 0.053 294.1), rgb(20, 12, 39).

Aa

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

About this color

#140C27 is a very dark, muted purple. In OKLCH its lightness is 18%, its chroma 0.053 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.051 away. White text reads best on it, at 18.89:1.

Hue familyPurples
Lightnessvery dark (18%)
Chromamuted (0.053)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.11:1
White text18.89:1

Values

HEX#140C27
RGBrgb(20, 12, 39)
HSLhsl(258, 53%, 10%)
OKLCHoklch(18.3% 0.053 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 #140C27 18.89:1 AAA Lc -107.3 Preferred for body text
Black text on #140C27 1.11:1 Fails Lc 0.0 Not readable
#140C27 text on white 18.89:1 AAA Lc 105.3 Preferred for body text
#140C27 text on black 1.11: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

    #C2B9E6

    oklch(80.8% 0.063 294.1)

  5. Step 400

    400

    #A494DA

    oklch(70.7% 0.102 294.1)

  6. Step 500

    500

    #8F78CF

    oklch(63.1% 0.129 294.6)

  7. Step 600

    600

    #7960BC

    oklch(55.6% 0.139 293.9)

  8. Step 700

    700

    #664EA2

    oklch(49% 0.131 294.2)

  9. Step 800

    800

    #534184

    oklch(42.8% 0.108 293.7)

  10. Step 900

    900

    #453769

    oklch(37.6% 0.084 294.9)

  11. Step 950

    950 (this color)

    #140C27

    oklch(18.3% 0.053 294.1)

Export this scale for Tailwind in the Tailwind colors tool

#140C27 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)#0311280.033
Deuteranopia (no green cones)#0411260.032
Tritanopia (no blue cones)#0F12170.044
Achromatopsia (no color)#1111110.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #140C27

    #140C27

    oklch(18.3% 0.053 294.1)

  • #121400

    #121400

    oklch(18.3% 0.041 114.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #140C27

    #140C27

    oklch(18.3% 0.053 294.1)

  • #061029

    #061029

    oklch(18.1% 0.053 264.4)

  • #1D081F

    #1D081F

    oklch(18.2% 0.054 324.1)

Open the analogous palette in the generator

Split complementary

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

  • #140C27

    #140C27

    oklch(18.3% 0.053 294.1)

  • #1A1000

    #1A1000

    oklch(18.2% 0.037 82.5)

  • #021803

    #021803

    oklch(18.4% 0.053 144.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #140C27

    #140C27

    oklch(18.3% 0.053 294.1)

  • #210B00

    #210B00

    oklch(18.2% 0.046 53.5)

  • #001711

    #001711

    oklch(18.3% 0.035 174.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #140C27

    #140C27

    oklch(18.3% 0.053 294.1)

  • #250606

    #250606

    oklch(18.2% 0.054 24.2)

  • #121400

    #121400

    oklch(18.3% 0.041 114.3)

  • #001618

    #001618

    oklch(18.2% 0.031 202.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #140C27 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.