#201828

Closest named color: Rich Black (#0D1B2A). oklch(22.6% 0.032 306.8), rgb(32, 24, 40).

Aa

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

About this color

#201828 is a very dark, muted purple. In OKLCH its lightness is 23%, its chroma 0.032 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.033 away. White text reads best on it, at 17.17:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamuted (0.032)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.22:1
White text17.17:1

Values

HEX#201828
RGBrgb(32, 24, 40)
HSLhsl(270, 25%, 13%)
OKLCHoklch(22.6% 0.032 306.8)

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 #201828 17.17:1 AAA Lc -106.4 Preferred for body text
Black text on #201828 1.22:1 Fails Lc 0.0 Not readable
#201828 text on white 17.17:1 AAA Lc 104.0 Preferred for body text
#201828 text on black 1.22: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

    #F6F5F8

    oklch(97.2% 0.004 301.4)

  2. Step 100

    100

    #ECE8F0

    oklch(93.6% 0.011 308.3)

  3. Step 200

    200

    #DDD6E4

    oklch(88.6% 0.02 308.2)

  4. Step 300

    300

    #C7BBD5

    oklch(81% 0.038 306.3)

  5. Step 400

    400

    #AA97BF

    oklch(70.7% 0.061 306.4)

  6. Step 500

    500

    #967DAF

    oklch(63.1% 0.079 307.1)

  7. Step 600

    600

    #80669B

    oklch(55.6% 0.085 306.3)

  8. Step 700

    700

    #6C5484

    oklch(49% 0.08 306.6)

  9. Step 800

    800

    #58456B

    oklch(42.6% 0.066 306.7)

  10. Step 900

    900

    #493A57

    oklch(37.7% 0.052 307.7)

  11. Step 950

    950 (this color)

    #201828

    oklch(22.6% 0.032 306.8)

Export this scale for Tailwind in the Tailwind colors tool

#201828 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)#151B290.022
Deuteranopia (no green cones)#171B280.019
Tritanopia (no blue cones)#1F1A1E0.023
Achromatopsia (no color)#1B1B1B0.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #201828

    #201828

    oklch(22.6% 0.032 306.8)

  • #181F0E

    #181F0E

    oklch(22.7% 0.032 127.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #201828

    #201828

    oklch(22.6% 0.032 306.8)

  • #181B2B

    #181B2B

    oklch(22.7% 0.031 275.5)

  • #261622

    #261622

    oklch(22.7% 0.033 336.2)

Open the analogous palette in the generator

Split complementary

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

  • #201828

    #201828

    oklch(22.6% 0.032 306.8)

  • #201C09

    #201C09

    oklch(22.6% 0.033 97.7)

  • #0E2116

    #0E2116

    oklch(22.7% 0.033 157)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #201828

    #201828

    oklch(22.6% 0.032 306.8)

  • #26190B

    #26190B

    oklch(22.6% 0.032 67.1)

  • #07211F

    #07211F

    oklch(22.7% 0.032 188.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #201828

    #201828

    oklch(22.6% 0.032 306.8)

  • #291711

    #291711

    oklch(22.7% 0.032 39.2)

  • #181F0E

    #181F0E

    oklch(22.7% 0.032 127.1)

  • #072026

    #072026

    oklch(22.7% 0.033 216.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #201828 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.