#1F8A23#1F8A23

#1F8A23 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.168 H 143.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#1F8A23
RGBrgb(31, 138, 35)
HSLhsl(122, 63%, 33%)
HSVhsv(122, 78%, 54%)
CMYKcmyk(77.5%, 0%, 74.6%, 45.9%)
CIE-LABlab(50.20, -49.66, 44.22)
CIE-LCHlch(50.20, 66.49, 138.31°)
OKLaboklab(55.44% -0.1346 0.1003)
OKLCHoklch(55.44% 0.168 143.3)
XYZxyz(9.9563, 18.5885, 4.6530)
Luminance0.1859 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A23 #8A1F86
analogous
#508A1F #1F8A23 #1F8A58
triadic
#1F8A23 #231F8A #8A231F
tetradic
#1F8A23 #1F508A #8A1F86 #8A581F
square
#1F8A23 #1F508A #8A1F86 #8A581F
split-complementary
#1F8A23 #581F8A #8A1F50
monochromatic
#09260A #145816 #1F8A23 #2ABC30 #4CD752

Accessibility & contrast

On white

4.45
#1F8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#1F8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A23
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A23#FFFFFF#000000##000000
##1F8A231.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C11
Deuteranopia (green-blind)
#81742E
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8a23;
/* rgb */ color: rgb(31, 138, 35);
/* oklch */ color: oklch(55.4% 0.168 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ead65',
    500: '#1f8a23',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a23;
$custom-light: #6ead65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a23",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 122.243,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55441,
    "c": 0.16787,
    "h": 143.3
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

primary
#1F8A23
secondary
#BA4BB5
accent
#41E0E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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