#1F9040#1F9040

#1F9040 is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.153 H 148.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#1F9040
RGBrgb(31, 144, 64)
HSLhsl(138, 65%, 34%)
HSVhsv(138, 78%, 56%)
CMYKcmyk(78.5%, 0%, 55.6%, 43.5%)
CIE-LABlab(52.52, -48.30, 33.59)
CIE-LCHlch(52.52, 58.83, 145.18°)
OKLaboklab(57.45% -0.1298 0.0805)
OKLCHoklch(57.45% 0.153 148.2)
XYZxyz(11.4628, 20.6066, 8.2228)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9040 #901F6F
analogous
#37901F #1F9040 #1F9079
triadic
#1F9040 #401F90 #90401F
tetradic
#1F9040 #1F3790 #901F6F #90791F
square
#1F9040 #1F3790 #901F6F #90791F
split-complementary
#1F9040 #791F90 #901F37
monochromatic
#092B13 #145E2A #1F9040 #2AC256 #50D978

Accessibility & contrast

On white

4.10
#1F9040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#1F9040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9040
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9040#FFFFFF#000000##000000
##1F90401.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918339
Deuteranopia (green-blind)
#857A46
Tritanopia (blue-blind)
#008D7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f9040;
/* rgb */ color: rgb(31, 144, 64);
/* oklch */ color: oklch(57.5% 0.153 148.2);
Tailwind
colors: {
  custom: {
    50: '#6eb277',
    500: '#1f9040',
    950: '#000000',
  },
}
SCSS
$custom: #1f9040;
$custom-light: #6eb277;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9040",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 64
  },
  "hsl": {
    "h": 137.522,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57453,
    "c": 0.15277,
    "h": 148.2
  },
  "luminance": 0.20608
}

Semantic roles & 50–950 ramp

primary
#1F9040
secondary
#BC4E9C
accent
#40B7E8
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#081109
muted
#7B807B

Preview Lab

Preview with #1F9040

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

Preview Lab → · Contrast checker → · Palette generator →

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