#222822#222822

#222822 is a dark, near-neutral green. Relative luminance 0.020; OKLCH L 26.9% C 0.014 H 145.2°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#222822
RGBrgb(34, 40, 34)
HSLhsl(120, 8%, 15%)
HSVhsv(120, 15%, 16%)
CMYKcmyk(15%, 0%, 15%, 84.3%)
CIE-LABlab(15.35, -4.17, 3.06)
CIE-LCHlch(15.35, 5.17, 143.72°)
OKLaboklab(26.87% -0.0114 0.0079)
OKLCHoklch(26.87% 0.014 145.2)
XYZxyz(1.7072, 1.9731, 1.8040)
Luminance0.0197 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222822 #282228
analogous
#252822 #222822 #222825
triadic
#222822 #222228 #282222
tetradic
#222822 #222528 #282228 #282522
square
#222822 #222528 #282228 #282522
split-complementary
#222822 #252228 #282225
monochromatic
#0E110E #0E110E #222822 #3E493E #5A6A5A

Accessibility & contrast

On white

15.06
#222822 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#222822 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222822
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222822#FFFFFF#000000##FFFFFF
##2228221.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282722
Deuteranopia (green-blind)
#272622
Tritanopia (blue-blind)
#212826
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #222822;
/* rgb */ color: rgb(34, 40, 34);
/* oklch */ color: oklch(26.9% 0.014 145.2);
Tailwind
colors: {
  custom: {
    50: '#5d615c',
    500: '#222822',
    950: '#000000',
  },
}
SCSS
$custom: #222822;
$custom-light: #5d615c;
$custom-dark: #000000;
JSON
{
  "hex": "#222822",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 34
  },
  "hsl": {
    "h": 120,
    "s": 8.108,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2687,
    "c": 0.01391,
    "h": 145.2
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#222822
secondary
#584E58
accent
#77B1B1
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040504
muted
#797979

Preview Lab

Preview with #222822

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

Preview Lab → · Contrast checker → · Palette generator →

#222822 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva