#1F7248#1F7248

#1F7248 is a mid, moderate green. Relative luminance 0.128; OKLCH L 49.2% C 0.104 H 156.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#1F7248
RGBrgb(31, 114, 72)
HSLhsl(150, 57%, 28%)
HSVhsv(150, 73%, 45%)
CMYKcmyk(72.8%, 0%, 36.8%, 55.3%)
CIE-LABlab(42.45, -35.11, 16.35)
CIE-LCHlch(42.45, 38.73, 155.03°)
OKLaboklab(49.18% -0.0951 0.0411)
OKLCHoklch(49.18% 0.104 156.6)
XYZxyz(7.7514, 12.7929, 8.1904)
Luminance0.1279 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7248 #721F49
analogous
#1F721F #1F7248 #1F7271
triadic
#1F7248 #481F72 #72481F
tetradic
#1F7248 #1F1F72 #721F49 #72711F
square
#1F7248 #1F1F72 #721F49 #72711F
split-complementary
#1F7248 #711F72 #721F1F
monochromatic
#07180F #12422A #1F7248 #2CA266 #40CB85

Accessibility & contrast

On white

5.90
#1F7248 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#1F7248 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7248
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7248#FFFFFF#000000##FFFFFF
##1F72481.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716945
Deuteranopia (green-blind)
#67614B
Tritanopia (blue-blind)
#007167
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7248;
/* rgb */ color: rgb(31, 114, 72);
/* oklch */ color: oklch(49.2% 0.104 156.6);
Tailwind
colors: {
  custom: {
    50: '#679b7b',
    500: '#1f7248',
    950: '#000000',
  },
}
SCSS
$custom: #1f7248;
$custom-light: #679b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7248",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 72
  },
  "hsl": {
    "h": 149.639,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49179,
    "c": 0.10361,
    "h": 156.6
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#1F7248
secondary
#A64777
accent
#4795E0
background
#F6F9F7
surface
#EBF2EE
border
#C6CCC9
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #1F7248

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

Preview Lab → · Contrast checker → · Palette generator →

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