#1F9028#1F9028

#1F9028 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.172 H 143.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#1F9028
RGBrgb(31, 144, 40)
HSLhsl(125, 65%, 34%)
HSVhsv(125, 78%, 56%)
CMYKcmyk(78.5%, 0%, 72.2%, 43.5%)
CIE-LABlab(52.27, -51.21, 44.38)
CIE-LCHlch(52.27, 67.77, 139.09°)
OKLaboklab(57.18% -0.1386 0.1013)
OKLCHoklch(57.18% 0.172 143.8)
XYZxyz(10.9206, 20.3897, 5.3671)
Luminance0.2039 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9028 #901F87
analogous
#4F901F #1F9028 #1F9061
triadic
#1F9028 #281F90 #90281F
tetradic
#1F9028 #1F4F90 #901F87 #90611F
square
#1F9028 #1F4F90 #901F87 #90611F
split-complementary
#1F9028 #611F90 #901F4F
monochromatic
#092B0C #145E1A #1F9028 #2AC236 #50D95B

Accessibility & contrast

On white

4.14
#1F9028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#1F9028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9028
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9028#FFFFFF#000000##000000
##1F90281.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938218
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#008C7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f9028;
/* rgb */ color: rgb(31, 144, 40);
/* oklch */ color: oklch(57.2% 0.172 143.8);
Tailwind
colors: {
  custom: {
    50: '#6fb268',
    500: '#1f9028',
    950: '#000000',
  },
}
SCSS
$custom: #1f9028;
$custom-light: #6fb268;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9028",
  "rgb": {
    "r": 31,
    "g": 144,
    "b": 40
  },
  "hsl": {
    "h": 124.779,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57175,
    "c": 0.17168,
    "h": 143.8
  },
  "luminance": 0.20391
}

Semantic roles & 50–950 ramp

primary
#1F9028
secondary
#BC4EB4
accent
#40DAE8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F9028

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

Preview Lab → · Contrast checker → · Palette generator →

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