#1F7F23#1F7F23

#1F7F23 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.155 H 143.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#1F7F23
RGBrgb(31, 127, 35)
HSLhsl(123, 61%, 31%)
HSVhsv(123, 76%, 50%)
CMYKcmyk(75.6%, 0%, 72.4%, 50.2%)
CIE-LABlab(46.43, -45.88, 40.32)
CIE-LCHlch(46.43, 61.08, 138.70°)
OKLaboklab(52.31% -0.1244 0.0922)
OKLCHoklch(52.31% 0.155 143.5)
XYZxyz(8.4573, 15.5904, 4.1533)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F23 #7F1F7B
analogous
#4B7F1F #1F7F23 #1F7F53
triadic
#1F7F23 #231F7F #7F231F
tetradic
#1F7F23 #1F4B7F #7F1F7B #7F531F
square
#1F7F23 #1F4B7F #7F1F7B #7F531F
split-complementary
#1F7F23 #531F7F #7F1F4B
monochromatic
#071D08 #134E15 #1F7F23 #2BB031 #46D24C

Accessibility & contrast

On white

5.10
#1F7F23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#1F7F23 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F23
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F23#FFFFFF#000000##FFFFFF
##1F7F231.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827315
Deuteranopia (green-blind)
#776B2C
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f23;
/* rgb */ color: rgb(31, 127, 35);
/* oklch */ color: oklch(52.3% 0.155 143.5);
Tailwind
colors: {
  custom: {
    50: '#6ba563',
    500: '#1f7f23',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f23;
$custom-light: #6ba563;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f23",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 122.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52311,
    "c": 0.15478,
    "h": 143.5
  },
  "luminance": 0.15591
}

Semantic roles & 50–950 ramp

primary
#1F7F23
secondary
#B248AE
accent
#44DDE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7F23

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

Preview Lab → · Contrast checker → · Palette generator →

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