#1F8023#1F8023

#1F8023 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.6% C 0.156 H 143.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F8023
RGBrgb(31, 128, 35)
HSLhsl(122, 61%, 31%)
HSVhsv(122, 76%, 50%)
CMYKcmyk(75.8%, 0%, 72.7%, 49.8%)
CIE-LABlab(46.78, -46.23, 40.68)
CIE-LCHlch(46.78, 61.58, 138.66°)
OKLaboklab(52.6% -0.1253 0.0929)
OKLCHoklch(52.6% 0.156 143.4)
XYZxyz(8.5871, 15.8500, 4.1966)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8023 #801F7C
analogous
#4B801F #1F8023 #1F8053
triadic
#1F8023 #231F80 #80231F
tetradic
#1F8023 #1F4B80 #801F7C #80531F
square
#1F8023 #1F4B80 #801F7C #80531F
split-complementary
#1F8023 #531F80 #801F4B
monochromatic
#071D08 #134F16 #1F8023 #2BB130 #47D24D

Accessibility & contrast

On white

5.04
#1F8023 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#1F8023 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8023
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8023#FFFFFF#000000##FFFFFF
##1F80231.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837314
Deuteranopia (green-blind)
#786C2C
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f8023;
/* rgb */ color: rgb(31, 128, 35);
/* oklch */ color: oklch(52.6% 0.156 143.4);
Tailwind
colors: {
  custom: {
    50: '#6ca664',
    500: '#1f8023',
    950: '#000000',
  },
}
SCSS
$custom: #1f8023;
$custom-light: #6ca664;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8023",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 122.474,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52597,
    "c": 0.156,
    "h": 143.4
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#1F8023
secondary
#B348AF
accent
#44DEE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F8023

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

Preview Lab → · Contrast checker → · Palette generator →

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