#1F9229#1F9229

#1F9229 is a mid, vivid green. Relative luminance 0.210; OKLCH L 57.7% C 0.173 H 143.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1F9229
RGBrgb(31, 146, 41)
HSLhsl(125, 65%, 35%)
HSVhsv(125, 79%, 57%)
CMYKcmyk(78.8%, 0%, 71.9%, 42.7%)
CIE-LABlab(52.96, -51.79, 44.69)
CIE-LCHlch(52.96, 68.41, 139.20°)
OKLaboklab(57.75% -0.1401 0.1021)
OKLCHoklch(57.75% 0.173 143.9)
XYZxyz(11.2434, 21.0078, 5.5597)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9229 #921F88
analogous
#4F921F #1F9229 #1F9262
triadic
#1F9229 #291F92 #92291F
tetradic
#1F9229 #1F4F92 #921F88 #92621F
square
#1F9229 #1F4F92 #921F88 #92621F
split-complementary
#1F9229 #621F92 #921F4F
monochromatic
#0A2D0D #14601B #1F9229 #2AC437 #51DA5D

Accessibility & contrast

On white

4.04
#1F9229 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#1F9229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9229
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9229#FFFFFF#000000##000000
##1F92291.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958419
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#008E7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #1f9229;
/* rgb */ color: rgb(31, 146, 41);
/* oklch */ color: oklch(57.7% 0.173 143.9);
Tailwind
colors: {
  custom: {
    50: '#70b369',
    500: '#1f9229',
    950: '#000000',
  },
}
SCSS
$custom: #1f9229;
$custom-light: #70b369;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9229",
  "rgb": {
    "r": 31,
    "g": 146,
    "b": 41
  },
  "hsl": {
    "h": 125.217,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57745,
    "c": 0.17336,
    "h": 143.9
  },
  "luminance": 0.21009
}

Semantic roles & 50–950 ramp

primary
#1F9229
secondary
#BD50B4
accent
#40D9E8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F9229

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

Preview Lab → · Contrast checker → · Palette generator →

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