#1F7045#1F7045

#1F7045 is a mid, moderate green. Relative luminance 0.123; OKLCH L 48.5% C 0.104 H 155.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#1F7045
RGBrgb(31, 112, 69)
HSLhsl(148, 57%, 28%)
HSVhsv(148, 72%, 44%)
CMYKcmyk(72.3%, 0%, 38.4%, 56.1%)
CIE-LABlab(41.70, -34.90, 17.09)
CIE-LCHlch(41.70, 38.86, 153.91°)
OKLaboklab(48.55% -0.0944 0.0429)
OKLCHoklch(48.55% 0.104 155.6)
XYZxyz(7.4327, 12.3085, 7.6131)
Luminance0.1231 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7045 #701F4A
analogous
#22701F #1F7045 #1F706D
triadic
#1F7045 #451F70 #70451F
tetradic
#1F7045 #1F2270 #701F4A #706D1F
square
#1F7045 #1F2270 #701F4A #706D1F
split-complementary
#1F7045 #6D1F70 #701F22
monochromatic
#07180F #124027 #1F7045 #2CA063 #3FCA80

Accessibility & contrast

On white

6.07
#1F7045 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#1F7045 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7045
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7045#FFFFFF#000000##FFFFFF
##1F70451.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6742
Deuteranopia (green-blind)
#655F48
Tritanopia (blue-blind)
#006F65
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f7045;
/* rgb */ color: rgb(31, 112, 69);
/* oklch */ color: oklch(48.5% 0.104 155.6);
Tailwind
colors: {
  custom: {
    50: '#669a79',
    500: '#1f7045',
    950: '#000000',
  },
}
SCSS
$custom: #1f7045;
$custom-light: #669a79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7045",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 69
  },
  "hsl": {
    "h": 148.148,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48545,
    "c": 0.1037,
    "h": 155.6
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#1F7045
secondary
#A44778
accent
#4899E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#060E09
muted
#7A7E7B

Preview Lab

Preview with #1F7045

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

Preview Lab → · Contrast checker → · Palette generator →

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