#22271B#22271B

#22271B is a dark, muted yellow-green. Relative luminance 0.019; OKLCH L 26.4% C 0.023 H 126.3°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#22271B
RGBrgb(34, 39, 27)
HSLhsl(85, 18%, 13%)
HSVhsv(85, 31%, 15%)
CMYKcmyk(12.8%, 0%, 30.8%, 84.7%)
CIE-LABlab(14.79, -5.03, 7.21)
CIE-LCHlch(14.79, 8.79, 124.91°)
OKLaboklab(26.36% -0.0134 0.0183)
OKLCHoklch(26.36% 0.023 126.3)
XYZxyz(1.5830, 1.8702, 1.3143)
Luminance0.0187 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22271B #201B27
analogous
#27261B #22271B #1C271B
triadic
#22271B #1B2227 #271B22
tetradic
#22271B #1B2726 #201B27 #271B1C
square
#22271B #1B2726 #201B27 #271B1C
split-complementary
#22271B #1B1C27 #261B27
monochromatic
#10120D #10120D #22271B #424B34 #616F4D

Accessibility & contrast

On white

15.28
#22271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#22271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22271B
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22271B#FFFFFF#000000##FFFFFF
##22271B1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251A
Deuteranopia (green-blind)
#28251C
Tritanopia (blue-blind)
#232624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #22271b;
/* rgb */ color: rgb(34, 39, 27);
/* oklch */ color: oklch(26.4% 0.023 126.3);
Tailwind
colors: {
  custom: {
    50: '#5d6157',
    500: '#22271b',
    950: '#000000',
  },
}
SCSS
$custom: #22271b;
$custom-light: #5d6157;
$custom-dark: #000000;
JSON
{
  "hex": "#22271b",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 85,
    "s": 18.182,
    "l": 12.941
  },
  "oklch": {
    "l": 0.26364,
    "c": 0.02271,
    "h": 126.3
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#22271B
secondary
#4D4559
accent
#6DBB8D
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #22271B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#22271B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva