#1F8223#1F8223

#1F8223 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.158 H 143.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8223
RGBrgb(31, 130, 35)
HSLhsl(122, 61%, 32%)
HSVhsv(122, 76%, 51%)
CMYKcmyk(76.2%, 0%, 73.1%, 49%)
CIE-LABlab(47.47, -46.93, 41.40)
CIE-LCHlch(47.47, 62.58, 138.58°)
OKLaboklab(53.17% -0.1272 0.0944)
OKLCHoklch(53.17% 0.158 143.4)
XYZxyz(8.8505, 16.3769, 4.2844)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8223 #821F7E
analogous
#4D821F #1F8223 #1F8255
triadic
#1F8223 #231F82 #82231F
tetradic
#1F8223 #1F4D82 #821F7E #82551F
square
#1F8223 #1F4D82 #821F7E #82551F
split-complementary
#1F8223 #551F82 #821F4D
monochromatic
#071F08 #135116 #1F8223 #2BB330 #48D34E

Accessibility & contrast

On white

4.91
#1F8223 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#1F8223 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8223
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8223#FFFFFF#000000##FFFFFF
##1F82231.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857514
Deuteranopia (green-blind)
#7A6E2C
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8223;
/* rgb */ color: rgb(31, 130, 35);
/* oklch */ color: oklch(53.2% 0.158 143.4);
Tailwind
colors: {
  custom: {
    50: '#6ca764',
    500: '#1f8223',
    950: '#000000',
  },
}
SCSS
$custom: #1f8223;
$custom-light: #6ca764;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8223",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 122.424,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53168,
    "c": 0.15841,
    "h": 143.4
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#1F8223
secondary
#B548B0
accent
#43DEE5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8223

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8223 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva