#238C31#238C31

#238C31 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.159 H 145.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#238C31
RGBrgb(35, 140, 49)
HSLhsl(128, 60%, 34%)
HSVhsv(128, 75%, 55%)
CMYKcmyk(75%, 0%, 65%, 45.1%)
CIE-LABlab(51.08, -48.26, 39.22)
CIE-LCHlch(51.08, 62.18, 140.90°)
OKLaboklab(56.23% -0.1303 0.0914)
OKLCHoklch(56.23% 0.159 145)
XYZxyz(10.6249, 19.3340, 6.0770)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#238C31 #8C237E
analogous
#4A8C23 #238C31 #238C66
triadic
#238C31 #31238C #8C3123
tetradic
#238C31 #234A8C #8C237E #8C6623
square
#238C31 #234A8C #8C237E #8C6623
split-complementary
#238C31 #66238C #8C234A
monochromatic
#0B2A0F #175B20 #238C31 #2FBD42 #55D466

Accessibility & contrast

On white

4.31
#238C31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#238C31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #238C31
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##238C31#FFFFFF#000000##000000
##238C311.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F26
Deuteranopia (green-blind)
#827639
Tritanopia (blue-blind)
#008879
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #238c31;
/* rgb */ color: rgb(35, 140, 49);
/* oklch */ color: oklch(56.2% 0.159 145.0);
Tailwind
colors: {
  custom: {
    50: '#6faf6d',
    500: '#238c31',
    950: '#000000',
  },
}
SCSS
$custom: #238c31;
$custom-light: #6faf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#238c31",
  "rgb": {
    "r": 35,
    "g": 140,
    "b": 49
  },
  "hsl": {
    "h": 128,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56227,
    "c": 0.15922,
    "h": 145
  },
  "luminance": 0.19335
}

Semantic roles & 50–950 ramp

primary
#238C31
secondary
#B852AB
accent
#45CEE3
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #238C31

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

Preview Lab → · Contrast checker → · Palette generator →

#238C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva