#1F9227#1F9227

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

Color values

HEX#1F9227
RGBrgb(31, 146, 39)
HSLhsl(124, 65%, 35%)
HSVhsv(124, 79%, 57%)
CMYKcmyk(78.8%, 0%, 73.3%, 42.7%)
CIE-LABlab(52.94, -51.97, 45.47)
CIE-LCHlch(52.94, 69.06, 138.81°)
OKLaboklab(57.73% -0.1407 0.1035)
OKLCHoklch(57.73% 0.175 143.7)
XYZxyz(11.2094, 20.9942, 5.3806)
Luminance0.2100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9227 #921F8A
analogous
#51921F #1F9227 #1F9261
triadic
#1F9227 #271F92 #92271F
tetradic
#1F9227 #1F5192 #921F8A #92611F
square
#1F9227 #1F5192 #921F8A #92611F
split-complementary
#1F9227 #611F92 #921F51
monochromatic
#0A2D0C #14601A #1F9227 #2AC434 #51DA5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F9227#FFFFFF#000000##000000
##1F92271.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)
#958415
Deuteranopia (green-blind)
#887B32
Tritanopia (blue-blind)
#008E7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #1f9227;
/* rgb */ color: rgb(31, 146, 39);
/* oklch */ color: oklch(57.7% 0.175 143.7);
Tailwind
colors: {
  custom: {
    50: '#70b368',
    500: '#1f9227',
    950: '#000000',
  },
}
SCSS
$custom: #1f9227;
$custom-light: #70b368;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9227",
  "rgb": {
    "r": 31,
    "g": 146,
    "b": 39
  },
  "hsl": {
    "h": 124.174,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57728,
    "c": 0.17464,
    "h": 143.7
  },
  "luminance": 0.20996
}

Semantic roles & 50–950 ramp

primary
#1F9227
secondary
#BD50B6
accent
#40DCE8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F9227

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

Preview Lab → · Contrast checker → · Palette generator →

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