#297040#297040

#297040 is a mid, moderate green. Relative luminance 0.124; OKLCH L 48.7% C 0.104 H 151.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#297040
RGBrgb(41, 112, 64)
HSLhsl(139, 46%, 30%)
HSVhsv(139, 63%, 44%)
CMYKcmyk(63.4%, 0%, 42.9%, 56.1%)
CIE-LABlab(41.89, -33.80, 20.28)
CIE-LCHlch(41.89, 39.42, 149.04°)
OKLaboklab(48.75% -0.0914 0.0503)
OKLCHoklch(48.75% 0.104 151.2)
XYZxyz(7.6335, 12.4292, 6.8463)
Luminance0.1243 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#297040 #702959
analogous
#357029 #297040 #297064
triadic
#297040 #402970 #704029
tetradic
#297040 #293570 #702959 #706429
square
#297040 #293570 #702959 #706429
split-complementary
#297040 #642970 #702935
monochromatic
#08160D #194326 #297040 #399D5A #53C077

Accessibility & contrast

On white

6.02
#297040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#297040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #297040
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##297040#FFFFFF#000000##FFFFFF
##2970401.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70673D
Deuteranopia (green-blind)
#676043
Tritanopia (blue-blind)
#126E64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #297040;
/* rgb */ color: rgb(41, 112, 64);
/* oklch */ color: oklch(48.7% 0.104 151.2);
Tailwind
colors: {
  custom: {
    50: '#6b9a75',
    500: '#297040',
    950: '#000000',
  },
}
SCSS
$custom: #297040;
$custom-light: #6b9a75;
$custom-dark: #000000;
JSON
{
  "hex": "#297040",
  "rgb": {
    "r": 41,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 139.437,
    "s": 46.405,
    "l": 30
  },
  "oklch": {
    "l": 0.48749,
    "c": 0.10434,
    "h": 151.2
  },
  "luminance": 0.1243
}

Semantic roles & 50–950 ramp

primary
#297040
secondary
#A25388
accent
#52ABD6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #297040

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

Preview Lab → · Contrast checker → · Palette generator →

#297040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva