#1F7145#1F7145

#1F7145 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.8% C 0.105 H 155.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#1F7145
RGBrgb(31, 113, 69)
HSLhsl(148, 57%, 28%)
HSVhsv(148, 73%, 44%)
CMYKcmyk(72.6%, 0%, 38.9%, 55.7%)
CIE-LABlab(42.05, -35.33, 17.55)
CIE-LCHlch(42.05, 39.45, 153.58°)
OKLaboklab(48.83% -0.0955 0.044)
OKLCHoklch(48.83% 0.105 155.3)
XYZxyz(7.5437, 12.5304, 7.6501)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7145 #711F4B
analogous
#22711F #1F7145 #1F716E
triadic
#1F7145 #451F71 #71451F
tetradic
#1F7145 #1F2271 #711F4B #716E1F
square
#1F7145 #1F2271 #711F4B #716E1F
split-complementary
#1F7145 #6E1F71 #711F22
monochromatic
#07180F #124128 #1F7145 #2CA162 #40CB80

Accessibility & contrast

On white

5.99
#1F7145 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#1F7145 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7145
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7145#FFFFFF#000000##FFFFFF
##1F71451.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716842
Deuteranopia (green-blind)
#666048
Tritanopia (blue-blind)
#007066
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7145;
/* rgb */ color: rgb(31, 113, 69);
/* oklch */ color: oklch(48.8% 0.105 155.3);
Tailwind
colors: {
  custom: {
    50: '#679a79',
    500: '#1f7145',
    950: '#000000',
  },
}
SCSS
$custom: #1f7145;
$custom-light: #679a79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7145",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 69
  },
  "hsl": {
    "h": 147.805,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.10516,
    "h": 155.3
  },
  "luminance": 0.12531
}

Semantic roles & 50–950 ramp

primary
#1F7145
secondary
#A54779
accent
#4899E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #1F7145

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

Preview Lab → · Contrast checker → · Palette generator →

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