#1F8B24#1F8B24

#1F8B24 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.7% C 0.168 H 143.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#1F8B24
RGBrgb(31, 139, 36)
HSLhsl(123, 64%, 33%)
HSVhsv(123, 78%, 55%)
CMYKcmyk(77.7%, 0%, 74.1%, 45.5%)
CIE-LABlab(50.55, -49.90, 44.19)
CIE-LCHlch(50.55, 66.65, 138.48°)
OKLaboklab(55.73% -0.1352 0.1004)
OKLCHoklch(55.73% 0.168 143.4)
XYZxyz(10.1155, 18.8827, 4.7803)
Luminance0.1888 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B24 #8B1F86
analogous
#508B1F #1F8B24 #1F8B5A
triadic
#1F8B24 #241F8B #8B241F
tetradic
#1F8B24 #1F508B #8B1F86 #8B5A1F
square
#1F8B24 #1F508B #8B1F86 #8B5A1F
split-complementary
#1F8B24 #5A1F8B #8B1F50
monochromatic
#09270A #145917 #1F8B24 #2ABD31 #4DD753

Accessibility & contrast

On white

4.40
#1F8B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#1F8B24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B24
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B24#FFFFFF#000000##000000
##1F8B241.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D12
Deuteranopia (green-blind)
#82752F
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b24;
/* rgb */ color: rgb(31, 139, 36);
/* oklch */ color: oklch(55.7% 0.168 143.4);
Tailwind
colors: {
  custom: {
    50: '#6eae65',
    500: '#1f8b24',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b24;
$custom-light: #6eae65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b24",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 36
  },
  "hsl": {
    "h": 122.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55732,
    "c": 0.16841,
    "h": 143.4
  },
  "luminance": 0.18884
}

Semantic roles & 50–950 ramp

primary
#1F8B24
secondary
#BA4CB5
accent
#41DFE7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8B24

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

Preview Lab → · Contrast checker → · Palette generator →

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