#298E1F#298E1F

#298E1F is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.172 H 141.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#298E1F
RGBrgb(41, 142, 31)
HSLhsl(115, 64%, 34%)
HSVhsv(115, 78%, 56%)
CMYKcmyk(71.1%, 0%, 78.2%, 44.3%)
CIE-LABlab(51.74, -49.56, 47.29)
CIE-LCHlch(51.74, 68.50, 136.34°)
OKLaboklab(56.77% -0.1351 0.1061)
OKLCHoklch(56.77% 0.172 141.8)
XYZxyz(10.8342, 19.9152, 4.5691)
Luminance0.1992 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298E1F #841F8E
analogous
#618E1F #298E1F #1F8E4D
triadic
#298E1F #1F298E #8E1F29
tetradic
#298E1F #1F618E #841F8E #8E4D1F
square
#298E1F #1F618E #841F8E #8E4D1F
split-complementary
#298E1F #4D1F8E #8E1F61
monochromatic
#0C2A09 #1A5C14 #298E1F #38C02A #5BD94F

Accessibility & contrast

On white

4.21
#298E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#298E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #298E1F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298E1F#FFFFFF#000000##000000
##298E1F1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928004
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#0F8979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #298e1f;
/* rgb */ color: rgb(41, 142, 31);
/* oklch */ color: oklch(56.8% 0.172 141.8);
Tailwind
colors: {
  custom: {
    50: '#73b063',
    500: '#298e1f',
    950: '#000000',
  },
}
SCSS
$custom: #298e1f;
$custom-light: #73b063;
$custom-dark: #000000;
JSON
{
  "hex": "#298e1f",
  "rgb": {
    "r": 41,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 114.595,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56771,
    "c": 0.17176,
    "h": 141.8
  },
  "luminance": 0.19916
}

Semantic roles & 50–950 ramp

primary
#298E1F
secondary
#B24DBB
accent
#41E7D8
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #298E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#298E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva