#222F0C#222F0C

#222F0C is a dark, muted yellow-green. Relative luminance 0.024; OKLCH L 28.4% C 0.058 H 127.0°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#222F0C
RGBrgb(34, 47, 12)
HSLhsl(82, 59%, 12%)
HSVhsv(82, 74%, 18%)
CMYKcmyk(27.7%, 0%, 74.5%, 81.6%)
CIE-LABlab(17.46, -12.37, 19.82)
CIE-LCHlch(17.46, 23.36, 121.98°)
OKLaboklab(28.42% -0.0351 0.0465)
OKLCHoklch(28.42% 0.058 127)
XYZxyz(1.7426, 2.3996, 0.7191)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F0C #190C2F
analogous
#2F2B0C #222F0C #112F0C
triadic
#222F0C #0C222F #2F0C22
tetradic
#222F0C #0C2F2B #190C2F #2F0C11
square
#222F0C #0C2F2B #190C2F #2F0C11
split-complementary
#222F0C #0C112F #2B0C2F
monochromatic
#121806 #121806 #222F0C #456018 #699125

Accessibility & contrast

On white

14.19
#222F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#222F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F0C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F0C#FFFFFF#000000##FFFFFF
##222F0C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B08
Deuteranopia (green-blind)
#302B0F
Tritanopia (blue-blind)
#242D28
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #222f0c;
/* rgb */ color: rgb(34, 47, 12);
/* oklch */ color: oklch(28.4% 0.058 127.0);
Tailwind
colors: {
  custom: {
    50: '#5e674d',
    500: '#222f0c',
    950: '#000000',
  },
}
SCSS
$custom: #222f0c;
$custom-light: #5e674d;
$custom-dark: #000000;
JSON
{
  "hex": "#222f0c",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 12
  },
  "hsl": {
    "h": 82.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2842,
    "c": 0.05829,
    "h": 127
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#222F0C
secondary
#432C6B
accent
#45E380
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #222F0C

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

Preview Lab → · Contrast checker → · Palette generator →

#222F0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva