#298B1F#298B1F

#298B1F is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.168 H 141.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#298B1F
RGBrgb(41, 139, 31)
HSLhsl(114, 64%, 33%)
HSVhsv(114, 78%, 55%)
CMYKcmyk(70.5%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.73, -48.52, 46.30)
CIE-LCHlch(50.73, 67.06, 136.34°)
OKLaboklab(55.93% -0.1322 0.104)
OKLCHoklch(55.93% 0.168 141.8)
XYZxyz(10.3938, 19.0345, 4.4223)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298B1F #811F8B
analogous
#5F8B1F #298B1F #1F8B4B
triadic
#298B1F #1F298B #8B1F29
tetradic
#298B1F #1F5F8B #811F8B #8B4B1F
square
#298B1F #1F5F8B #811F8B #8B4B1F
split-complementary
#298B1F #4B1F8B #8B1F5F
monochromatic
#0B2709 #1A5914 #298B1F #38BD2A #5AD74D

Accessibility & contrast

On white

4.37
#298B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#298B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #298B1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298B1F#FFFFFF#000000##000000
##298B1F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E06
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#118776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #298b1f;
/* rgb */ color: rgb(41, 139, 31);
/* oklch */ color: oklch(55.9% 0.168 141.8);
Tailwind
colors: {
  custom: {
    50: '#72ae63',
    500: '#298b1f',
    950: '#000000',
  },
}
SCSS
$custom: #298b1f;
$custom-light: #72ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#298b1f",
  "rgb": {
    "r": 41,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 114.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5593,
    "c": 0.16826,
    "h": 141.8
  },
  "luminance": 0.19036
}

Semantic roles & 50–950 ramp

primary
#298B1F
secondary
#B04CBA
accent
#41E7D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #298B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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