#225F1F#225F1F

#225F1F is a dark, moderate green. Relative luminance 0.086; OKLCH L 43.1% C 0.115 H 142.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#225F1F
RGBrgb(34, 95, 31)
HSLhsl(117, 51%, 25%)
HSVhsv(117, 67%, 37%)
CMYKcmyk(64.2%, 0%, 67.4%, 62.7%)
CIE-LABlab(35.25, -33.56, 30.06)
CIE-LCHlch(35.25, 45.06, 138.15°)
OKLaboklab(43.06% -0.0913 0.07)
OKLCHoklch(43.06% 0.115 142.5)
XYZxyz(4.9989, 8.6230, 2.6970)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#225F1F #5C1F5F
analogous
#425F1F #225F1F #1F5F3C
triadic
#225F1F #1F225F #5F1F22
tetradic
#225F1F #1F425F #5C1F5F #5F3C1F
square
#225F1F #1F425F #5C1F5F #5F3C1F
split-complementary
#225F1F #3C1F5F #5F1F42
monochromatic
#081708 #113110 #225F1F #338D2E #43BB3D

Accessibility & contrast

On white

7.71
#225F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#225F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #225F1F
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##225F1F#FFFFFF#000000##FFFFFF
##225F1F1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615617
Deuteranopia (green-blind)
#5A5124
Tritanopia (blue-blind)
#185C52
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #225f1f;
/* rgb */ color: rgb(34, 95, 31);
/* oklch */ color: oklch(43.1% 0.115 142.5);
Tailwind
colors: {
  custom: {
    50: '#658d5d',
    500: '#225f1f',
    950: '#000000',
  },
}
SCSS
$custom: #225f1f;
$custom-light: #658d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#225f1f",
  "rgb": {
    "r": 34,
    "g": 95,
    "b": 31
  },
  "hsl": {
    "h": 117.188,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.11509,
    "h": 142.5
  },
  "luminance": 0.08623
}

Semantic roles & 50–950 ramp

primary
#225F1F
secondary
#904694
accent
#4EDAD4
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #225F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#225F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva