#338B2B#338B2B

#338B2B is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.157 H 141.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338B2B
RGBrgb(51, 139, 43)
HSLhsl(115, 53%, 36%)
HSVhsv(115, 69%, 55%)
CMYKcmyk(63.3%, 0%, 69.1%, 45.5%)
CIE-LABlab(51.09, -45.25, 42.02)
CIE-LCHlch(51.09, 61.75, 137.12°)
OKLaboklab(56.33% -0.1234 0.0966)
OKLCHoklch(56.33% 0.157 141.9)
XYZxyz(11.0333, 19.3424, 5.4370)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B2B #832B8B
analogous
#638B2B #338B2B #2B8B53
triadic
#338B2B #2B338B #8B2B33
tetradic
#338B2B #2B638B #832B8B #8B532B
square
#338B2B #2B638B #832B8B #8B532B
split-complementary
#338B2B #532B8B #8B2B63
monochromatic
#112E0E #225C1D #338B2B #44BA39 #6BCE62

Accessibility & contrast

On white

4.31
#338B2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338B2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B2B
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B2B#FFFFFF#000000##000000
##338B2B1.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)
#8E7E1E
Deuteranopia (green-blind)
#847734
Tritanopia (blue-blind)
#248777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b2b;
/* rgb */ color: rgb(51, 139, 43);
/* oklch */ color: oklch(56.3% 0.157 141.9);
Tailwind
colors: {
  custom: {
    50: '#76ae69',
    500: '#338b2b',
    950: '#000000',
  },
}
SCSS
$custom: #338b2b;
$custom-light: #76ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#338b2b",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 115,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56331,
    "c": 0.15668,
    "h": 141.9
  },
  "luminance": 0.19343
}

Semantic roles & 50–950 ramp

primary
#338B2B
secondary
#AD5DB5
accent
#4CDCD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338B2B

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

Preview Lab → · Contrast checker → · Palette generator →

#338B2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva