#22271F#22271F

#22271F is a dark, near-neutral yellow-green. Relative luminance 0.019; OKLCH L 26.5% C 0.016 H 133.7°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#22271F
RGBrgb(34, 39, 31)
HSLhsl(98, 11%, 14%)
HSVhsv(98, 21%, 15%)
CMYKcmyk(12.8%, 0%, 20.5%, 84.7%)
CIE-LABlab(14.90, -4.18, 4.54)
CIE-LCHlch(14.90, 6.17, 132.61°)
OKLaboklab(26.49% -0.0112 0.0117)
OKLCHoklch(26.49% 0.016 133.7)
XYZxyz(1.6325, 1.8900, 1.5749)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22271F #241F27
analogous
#26271F #22271F #1F2720
triadic
#22271F #1F2227 #271F22
tetradic
#22271F #1F2627 #241F27 #27201F
square
#22271F #1F2627 #241F27 #27201F
split-complementary
#22271F #201F27 #271F26
monochromatic
#0F110E #0F110E #22271F #40493A #5D6B55

Accessibility & contrast

On white

15.24
#22271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#22271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22271F
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22271F#FFFFFF#000000##FFFFFF
##22271F1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#27251F
Tritanopia (blue-blind)
#222625
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #22271f;
/* rgb */ color: rgb(34, 39, 31);
/* oklch */ color: oklch(26.5% 0.016 133.7);
Tailwind
colors: {
  custom: {
    50: '#5d615a',
    500: '#22271f',
    950: '#000000',
  },
}
SCSS
$custom: #22271f;
$custom-light: #5d615a;
$custom-dark: #000000;
JSON
{
  "hex": "#22271f",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 97.5,
    "s": 11.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26486,
    "c": 0.01623,
    "h": 133.7
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#22271F
secondary
#534A57
accent
#73B49C
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #22271F

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

Preview Lab → · Contrast checker → · Palette generator →

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