#22271C

Closest named color: Jet (#212529). oklch(26.4% 0.021 127.7), rgb(34, 39, 28).

Aa

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

About this color

#22271C is a dark close to neutral grey. In OKLCH its lightness is 26%, its chroma 0.021. It has too little chroma to lean warm or cool. The nearest named color is Jet (#212529), ΔE 0.027 away. White text reads best on it, at 15.27:1.

Hue familyNeutrals
Lightnessdark (26%)
Chromaclose to neutral grey (0.021)
Temperatureneutral
Nearest nameJet (#212529)
Black text1.37:1
White text15.27:1

Values

HEX#22271C
RGBrgb(34, 39, 28)
HSLhsl(87, 16%, 13%)
OKLCHoklch(26.4% 0.021 127.7)

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 #22271C 15.27:1 AAA Lc -104.9 Preferred for body text
Black text on #22271C 1.37:1 Fails Lc 0.0 Not readable
#22271C text on white 15.27:1 AAA Lc 102.2 Preferred for body text
#22271C text on black 1.37: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

    #F5F6F3

    oklch(97.2% 0.004 121.6)

  2. Step 100

    100

    #E8EBE6

    oklch(93.6% 0.007 132.4)

  3. Step 200

    200

    #D6DBD1

    oklch(88.5% 0.015 128.6)

  4. Step 300

    300

    #BCC4B3

    oklch(80.9% 0.025 127.7)

  5. Step 400

    400

    #99A68B

    oklch(70.7% 0.041 128.4)

  6. Step 500

    500

    #81906F

    oklch(63.2% 0.051 127.7)

  7. Step 600

    600

    #6A7A57

    oklch(55.7% 0.055 128.1)

  8. Step 700

    700

    #586647

    oklch(49% 0.05 127.9)

  9. Step 800

    800

    #48543A

    oklch(42.8% 0.044 128.3)

  10. Step 900

    900

    #3C4532

    oklch(37.6% 0.033 128.5)

  11. Step 950

    950 (this color)

    #22271C

    oklch(26.4% 0.021 127.7)

Export this scale for Tailwind in the Tailwind colors tool

#22271C 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)#28251B0.012
Deuteranopia (no green cones)#27251C0.011
Tritanopia (no blue cones)#2326240.016
Achromatopsia (no color)#2525250.021

Harmonies

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

Complementary

The opposite hue (180°).

  • #22271C

    #22271C

    oklch(26.4% 0.021 127.7)

  • #28222D

    #28222D

    oklch(26.3% 0.022 309.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #22271C

    #22271C

    oklch(26.4% 0.021 127.7)

  • #282519

    #282519

    oklch(26.4% 0.022 95.7)

  • #1C2821

    #1C2821

    oklch(26.3% 0.021 159)

Open the analogous palette in the generator

Split complementary

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

  • #22271C

    #22271C

    oklch(26.4% 0.021 127.7)

  • #22242F

    #22242F

    oklch(26.3% 0.021 276.8)

  • #2C2129

    #2C2129

    oklch(26.4% 0.022 336.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #22271C

    #22271C

    oklch(26.4% 0.021 127.7)

  • #1D262F

    #1D262F

    oklch(26.4% 0.021 248.6)

  • #2E2123

    #2E2123

    oklch(26.4% 0.02 8.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #22271C

    #22271C

    oklch(26.4% 0.021 127.7)

  • #19282C

    #19282C

    oklch(26.5% 0.022 216.2)

  • #28222D

    #28222D

    oklch(26.3% 0.022 309.5)

  • #2E221E

    #2E221E

    oklch(26.5% 0.02 39.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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