#228B1B#228B1B

#228B1B is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.7% C 0.173 H 142.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#228B1B
RGBrgb(34, 139, 27)
HSLhsl(116, 67%, 33%)
HSVhsv(116, 81%, 55%)
CMYKcmyk(75.5%, 0%, 80.6%, 45.5%)
CIE-LABlab(50.55, -50.11, 47.44)
CIE-LCHlch(50.55, 69.00, 136.57°)
OKLaboklab(55.73% -0.1364 0.1059)
OKLCHoklch(55.73% 0.173 142.2)
XYZxyz(10.0895, 18.8833, 4.1498)
Luminance0.1888 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B1B #841B8B
analogous
#5A8B1B #228B1B #1B8B4C
triadic
#228B1B #1B228B #8B1B22
tetradic
#228B1B #1B5A8B #841B8B #8B4C1B
square
#228B1B #1B5A8B #841B8B #8B4C1B
split-complementary
#228B1B #4C1B8B #8B1B5A
monochromatic
#092507 #155811 #228B1B #2FBE25 #4FDB45

Accessibility & contrast

On white

4.40
#228B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#228B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B1B
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B1B#FFFFFF#000000##000000
##228B1B1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837528
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #228b1b;
/* rgb */ color: rgb(34, 139, 27);
/* oklch */ color: oklch(55.7% 0.173 142.2);
Tailwind
colors: {
  custom: {
    50: '#70ae61',
    500: '#228b1b',
    950: '#000000',
  },
}
SCSS
$custom: #228b1b;
$custom-light: #70ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#228b1b",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 116.25,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55731,
    "c": 0.17264,
    "h": 142.2
  },
  "luminance": 0.18884
}

Semantic roles & 50–950 ramp

primary
#228B1B
secondary
#B545BC
accent
#3DEAE0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #228B1B

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

Preview Lab → · Contrast checker → · Palette generator →

#228B1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva