#31272E

Closest named color: Jet (#212529). oklch(28.7% 0.019 337.1), rgb(49, 39, 46).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (29%)
Chromaclose to neutral grey (0.019)
Temperatureneutral
Nearest nameJet (#212529)
Black text1.46:1
White text14.38:1

Values

HEX#31272E
RGBrgb(49, 39, 46)
HSLhsl(318, 11%, 17%)
OKLCHoklch(28.7% 0.019 337.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 #31272E 14.38:1 AAA Lc -104.1 Preferred for body text
Black text on #31272E 1.46:1 Fails Lc 0.0 Not readable
#31272E text on white 14.38:1 AAA Lc 101.1 Preferred for body text
#31272E text on black 1.46: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

    #F7F5F6

    oklch(97.2% 0.002 345.2)

  2. Step 100

    100

    #EDE8EB

    oklch(93.6% 0.007 340.4)

  3. Step 200

    200

    #DFD6DC

    oklch(88.5% 0.013 337.6)

  4. Step 300

    300

    #CBBBC6

    oklch(80.9% 0.023 336.9)

  5. Step 400

    400

    #B098A9

    oklch(70.6% 0.037 336.5)

  6. Step 500

    500

    #9D7F94

    oklch(63.1% 0.047 337.2)

  7. Step 600

    600

    #87687E

    oklch(55.5% 0.051 337.1)

  8. Step 700

    700

    #72576A

    oklch(49.1% 0.045 337.4)

  9. Step 800

    800

    #5D4757

    oklch(42.7% 0.039 336.3)

  10. Step 900

    900

    #4C3C47

    oklch(37.7% 0.028 337.8)

  11. Step 950

    950 (this color)

    #31272E

    oklch(28.7% 0.019 337.1)

Export this scale for Tailwind in the Tailwind colors tool

#31272E 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)#27292E0.019
Deuteranopia (no green cones)#292A2E0.017
Tritanopia (no blue cones)#3227290.009
Achromatopsia (no color)#2A2A2A0.019

Harmonies

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

Complementary

The opposite hue (180°).

  • #31272E

    #31272E

    oklch(28.7% 0.019 337.1)

  • #232E27

    #232E27

    oklch(28.8% 0.02 157)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31272E

    #31272E

    oklch(28.7% 0.019 337.1)

  • #2D2832

    #2D2832

    oklch(28.6% 0.019 307.7)

  • #332729

    #332729

    oklch(28.7% 0.018 7.1)

Open the analogous palette in the generator

Split complementary

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

  • #31272E

    #31272E

    oklch(28.7% 0.019 337.1)

  • #282C22

    #282C22

    oklch(28.6% 0.019 125.3)

  • #202E2C

    #202E2C

    oklch(28.8% 0.019 185.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31272E

    #31272E

    oklch(28.7% 0.019 337.1)

  • #2D2B20

    #2D2B20

    oklch(28.8% 0.019 98.9)

  • #202D31

    #202D31

    oklch(28.7% 0.019 218.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31272E

    #31272E

    oklch(28.7% 0.019 337.1)

  • #312920

    #312920

    oklch(28.7% 0.02 70.2)

  • #232E27

    #232E27

    oklch(28.8% 0.02 157)

  • #232C34

    #232C34

    oklch(28.8% 0.019 245.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31272E 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.