#1F9018#1F9018

#1F9018 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.1% C 0.180 H 142.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#1F9018
RGBrgb(31, 144, 24)
HSLhsl(117, 71%, 33%)
HSVhsv(117, 83%, 56%)
CMYKcmyk(78.5%, 0%, 83.3%, 43.5%)
CIE-LABlab(52.18, -52.42, 49.87)
CIE-LCHlch(52.18, 72.36, 136.43°)
OKLaboklab(57.06% -0.1426 0.1106)
OKLCHoklch(57.06% 0.18 142.2)
XYZxyz(10.7026, 20.3025, 4.2187)
Luminance0.2030 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9018 #891890
analogous
#5B9018 #1F9018 #18904D
triadic
#1F9018 #181F90 #90181F
tetradic
#1F9018 #185B90 #891890 #904D18
square
#1F9018 #185B90 #891890 #904D18
split-complementary
#1F9018 #4D1890 #90185B
monochromatic
#082707 #145C0F #1F9018 #2AC421 #4CE043

Accessibility & contrast

On white

4.15
#1F9018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#1F9018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9018
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9018#FFFFFF#000000##000000
##1F90181.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f9018;
/* rgb */ color: rgb(31, 144, 24);
/* oklch */ color: oklch(57.1% 0.180 142.2);
Tailwind
colors: {
  custom: {
    50: '#70b261',
    500: '#1f9018',
    950: '#000000',
  },
}
SCSS
$custom: #1f9018;
$custom-light: #70b261;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9018",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 24
  },
  "hsl": {
    "h": 116.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57063,
    "c": 0.18044,
    "h": 142.2
  },
  "luminance": 0.20304
}

Semantic roles & 50–950 ramp

primary
#1F9018
secondary
#B943C0
accent
#3AEEE4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #1F9018

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

Preview Lab → · Contrast checker → · Palette generator →

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