#31272F

Closest named color: Jet (#212529). oklch(28.7% 0.02 333), rgb(49, 39, 47).

Aa

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

About this color

#31272F is a dark close to neutral grey. In OKLCH its lightness is 29%, its chroma 0.020. 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.36:1.

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

Values

HEX#31272F
RGBrgb(49, 39, 47)
HSLhsl(312, 11%, 17%)
OKLCHoklch(28.7% 0.02 333)

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 #31272F 14.36:1 AAA Lc -104.0 Preferred for body text
Black text on #31272F 1.46:1 Fails Lc 0.0 Not readable
#31272F text on white 14.36:1 AAA Lc 101.1 Preferred for body text
#31272F 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

    #EDE8EC

    oklch(93.6% 0.008 332.1)

  3. Step 200

    200

    #DFD6DD

    oklch(88.5% 0.014 333.1)

  4. Step 300

    300

    #CBBBC7

    oklch(80.9% 0.024 334.4)

  5. Step 400

    400

    #B098AB

    oklch(70.7% 0.039 333.1)

  6. Step 500

    500

    #9C7F96

    oklch(63.1% 0.048 333.4)

  7. Step 600

    600

    #876881

    oklch(55.7% 0.054 333.1)

  8. Step 700

    700

    #72566D

    oklch(49% 0.05 332.6)

  9. Step 800

    800

    #5D4759

    oklch(42.8% 0.041 332.6)

  10. Step 900

    900

    #4C3B49

    oklch(37.6% 0.033 332.3)

  11. Step 950

    950 (this color)

    #31272F

    oklch(28.7% 0.02 333)

Export this scale for Tailwind in the Tailwind colors tool

#31272F 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)#27292F0.019
Deuteranopia (no green cones)#292A2F0.017
Tritanopia (no blue cones)#32272A0.009
Achromatopsia (no color)#2A2A2A0.020

Harmonies

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

Complementary

The opposite hue (180°).

  • #31272F

    #31272F

    oklch(28.7% 0.02 333)

  • #232E26

    #232E26

    oklch(28.8% 0.021 153.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31272F

    #31272F

    oklch(28.7% 0.02 333)

  • #2D2833

    #2D2833

    oklch(28.7% 0.021 305.7)

  • #34272A

    #34272A

    oklch(28.9% 0.02 3)

Open the analogous palette in the generator

Split complementary

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

  • #31272F

    #31272F

    oklch(28.7% 0.02 333)

  • #292C21

    #292C21

    oklch(28.6% 0.02 120.1)

  • #1F2E2C

    #1F2E2C

    oklch(28.7% 0.02 185.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31272F

    #31272F

    oklch(28.7% 0.02 333)

  • #2E2B1F

    #2E2B1F

    oklch(28.8% 0.021 95.7)

  • #1F2D31

    #1F2D31

    oklch(28.6% 0.02 217.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31272F

    #31272F

    oklch(28.7% 0.02 333)

  • #322920

    #322920

    oklch(28.8% 0.021 66.9)

  • #232E26

    #232E26

    oklch(28.8% 0.021 153.4)

  • #222C34

    #222C34

    oklch(28.7% 0.02 242.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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