#237840#237840

#237840 is a mid, moderate green. Relative luminance 0.142; OKLCH L 50.8% C 0.119 H 150.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#237840
RGBrgb(35, 120, 64)
HSLhsl(140, 55%, 30%)
HSVhsv(140, 71%, 47%)
CMYKcmyk(70.8%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.46, -38.47, 23.58)
CIE-LCHlch(44.46, 45.12, 148.50°)
OKLaboklab(50.82% -0.1037 0.058)
OKLCHoklch(50.82% 0.119 150.8)
XYZxyz(8.3343, 14.1595, 7.1433)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#237840 #78235B
analogous
#307823 #237840 #23786B
triadic
#237840 #402378 #784023
tetradic
#237840 #233078 #78235B #786B23
square
#237840 #233078 #78235B #786B23
split-complementary
#237840 #6B2378 #782330
monochromatic
#07190D #154927 #237840 #31A759 #4BCA76

Accessibility & contrast

On white

5.48
#237840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#237840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #237840
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##237840#FFFFFF#000000##FFFFFF
##2378401.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6E6644
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #237840;
/* rgb */ color: rgb(35, 120, 64);
/* oklch */ color: oklch(50.8% 0.119 150.8);
Tailwind
colors: {
  custom: {
    50: '#6aa075',
    500: '#237840',
    950: '#000000',
  },
}
SCSS
$custom: #237840;
$custom-light: #6aa075;
$custom-dark: #000000;
JSON
{
  "hex": "#237840",
  "rgb": {
    "r": 35,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 140.471,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.50817,
    "c": 0.11879,
    "h": 150.8
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#237840
secondary
#AB4C8A
accent
#4AABDE
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #237840

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

Preview Lab → · Contrast checker → · Palette generator →

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