#298D1F#298D1F

#298D1F is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.171 H 141.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#298D1F
RGBrgb(41, 141, 31)
HSLhsl(115, 64%, 34%)
HSVhsv(115, 78%, 55%)
CMYKcmyk(70.9%, 0%, 78%, 44.7%)
CIE-LABlab(51.40, -49.21, 46.96)
CIE-LCHlch(51.40, 68.02, 136.34°)
OKLaboklab(56.49% -0.1341 0.1054)
OKLCHoklch(56.49% 0.171 141.8)
XYZxyz(10.6861, 19.6190, 4.5197)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298D1F #831F8D
analogous
#608D1F #298D1F #1F8D4C
triadic
#298D1F #1F298D #8D1F29
tetradic
#298D1F #1F608D #831F8D #8D4C1F
square
#298D1F #1F608D #831F8D #8D4C1F
split-complementary
#298D1F #4C1F8D #8D1F60
monochromatic
#0C2909 #1A5B14 #298D1F #38BF2A #5BD84E

Accessibility & contrast

On white

4.26
#298D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#298D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #298D1F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298D1F#FFFFFF#000000##000000
##298D1F1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#0F8978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #298d1f;
/* rgb */ color: rgb(41, 141, 31);
/* oklch */ color: oklch(56.5% 0.171 141.8);
Tailwind
colors: {
  custom: {
    50: '#73af63',
    500: '#298d1f',
    950: '#000000',
  },
}
SCSS
$custom: #298d1f;
$custom-light: #73af63;
$custom-dark: #000000;
JSON
{
  "hex": "#298d1f",
  "rgb": {
    "r": 41,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 114.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.1706,
    "h": 141.8
  },
  "luminance": 0.1962
}

Semantic roles & 50–950 ramp

primary
#298D1F
secondary
#B14DBB
accent
#41E7D8
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #298D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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