#1F8B2A#1F8B2A

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

Color values

HEX#1F8B2A
RGBrgb(31, 139, 42)
HSLhsl(126, 64%, 33%)
HSVhsv(126, 78%, 55%)
CMYKcmyk(77.7%, 0%, 69.8%, 45.5%)
CIE-LABlab(50.60, -49.33, 41.78)
CIE-LCHlch(50.60, 64.65, 139.74°)
OKLaboklab(55.79% -0.1334 0.0961)
OKLCHoklch(55.79% 0.164 144.2)
XYZxyz(10.2149, 18.9225, 5.3041)
Luminance0.1892 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B2A #8B1F80
analogous
#4A8B1F #1F8B2A #1F8B60
triadic
#1F8B2A #2A1F8B #8B2A1F
tetradic
#1F8B2A #1F4A8B #8B1F80 #8B601F
square
#1F8B2A #1F4A8B #8B1F80 #8B601F
split-complementary
#1F8B2A #601F8B #8B1F4A
monochromatic
#09270C #14591B #1F8B2A #2ABD39 #4DD75B

Accessibility & contrast

On white

4.39
#1F8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8B2A#FFFFFF#000000##000000
##1F8B2A1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1C
Deuteranopia (green-blind)
#827533
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b2a;
/* rgb */ color: rgb(31, 139, 42);
/* oklch */ color: oklch(55.8% 0.164 144.2);
Tailwind
colors: {
  custom: {
    50: '#6eae69',
    500: '#1f8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b2a;
$custom-light: #6eae69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b2a",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 126.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55786,
    "c": 0.1644,
    "h": 144.2
  },
  "luminance": 0.18924
}

Semantic roles & 50–950 ramp

primary
#1F8B2A
secondary
#BA4CAF
accent
#41D6E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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