#12271F

Closest named color: Jet (#212529). oklch(25.2% 0.031 167.3), rgb(18, 39, 31).

Aa

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

About this color

#12271F is a dark, muted green. In OKLCH its lightness is 25%, its chroma 0.031 and its hue 167°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Jet (#212529), ΔE 0.033 away. White text reads best on it, at 15.72:1.

Hue familyGreens
Lightnessdark (25%)
Chromamuted (0.031)
Temperaturein between
Nearest nameJet (#212529)
Black text1.33:1
White text15.72:1

Values

HEX#12271F
RGBrgb(18, 39, 31)
HSLhsl(157, 37%, 11%)
OKLCHoklch(25.2% 0.031 167.3)

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 #12271F 15.72:1 AAA Lc -105.2 Preferred for body text
Black text on #12271F 1.33:1 Fails Lc 0.0 Not readable
#12271F text on white 15.72:1 AAA Lc 102.6 Preferred for body text
#12271F text on black 1.33: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

    #F2F6F5

    oklch(97% 0.004 179.7)

  2. Step 100

    100

    #E3ECE8

    oklch(93.5% 0.011 167.8)

  3. Step 200

    200

    #CDDED6

    oklch(88.6% 0.021 166)

  4. Step 300

    300

    #ABC9BC

    oklch(81% 0.037 167.4)

  5. Step 400

    400

    #7CAD99

    oklch(70.7% 0.06 167.5)

  6. Step 500

    500

    #599880

    oklch(63% 0.075 167.6)

  7. Step 600

    600

    #3C8369

    oklch(55.6% 0.083 166.9)

  8. Step 700

    700

    #2D6F58

    oklch(49.2% 0.077 167.4)

  9. Step 800

    800

    #275A48

    oklch(42.7% 0.063 167.7)

  10. Step 900

    900

    #254A3C

    oklch(37.7% 0.049 167.1)

  11. Step 950

    950 (this color)

    #12271F

    oklch(25.2% 0.031 167.3)

Export this scale for Tailwind in the Tailwind colors tool

#12271F 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)#26241F0.032
Deuteranopia (no green cones)#2322200.031
Tritanopia (no blue cones)#0C27250.012
Achromatopsia (no color)#2323230.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #12271F

    #12271F

    oklch(25.2% 0.031 167.3)

  • #2D1C25

    #2D1C25

    oklch(25.2% 0.031 346.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #12271F

    #12271F

    oklch(25.2% 0.031 167.3)

  • #1B2617

    #1B2617

    oklch(25.3% 0.031 137.5)

  • #0D2727

    #0D2727

    oklch(25.3% 0.032 195.3)

Open the analogous palette in the generator

Split complementary

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

  • #12271F

    #12271F

    oklch(25.2% 0.031 167.3)

  • #281D2C

    #281D2C

    oklch(25.1% 0.032 316.9)

  • #301C1D

    #301C1D

    oklch(25.3% 0.032 16.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #12271F

    #12271F

    oklch(25.2% 0.031 167.3)

  • #212031

    #212031

    oklch(25.3% 0.032 286.6)

  • #2F1D15

    #2F1D15

    oklch(25.2% 0.032 44.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #12271F

    #12271F

    oklch(25.2% 0.031 167.3)

  • #182331

    #182331

    oklch(25.3% 0.031 254.8)

  • #2D1C25

    #2D1C25

    oklch(25.2% 0.031 346.5)

  • #2B2010

    #2B2010

    oklch(25.2% 0.032 75.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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