#338B1B#338B1B

#338B1B is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.167 H 140.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1B
RGBrgb(51, 139, 27)
HSLhsl(107, 67%, 33%)
HSVhsv(107, 81%, 55%)
CMYKcmyk(63.3%, 0%, 80.6%, 45.5%)
CIE-LABlab(50.98, -46.55, 47.99)
CIE-LCHlch(50.98, 66.85, 134.12°)
OKLaboklab(56.21% -0.1278 0.1069)
OKLCHoklch(56.21% 0.167 140.1)
XYZxyz(10.7952, 19.2472, 4.1829)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1B #731B8B
analogous
#6B8B1B #338B1B #1B8B3B
triadic
#338B1B #1B338B #8B1B33
tetradic
#338B1B #1B6B8B #731B8B #8B3B1B
square
#338B1B #1B6B8B #731B8B #8B3B1B
split-complementary
#338B1B #3B1B8B #8B1B6B
monochromatic
#0D2507 #205811 #338B1B #46BE25 #65DB45

Accessibility & contrast

On white

4.33
#338B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1B
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1B#FFFFFF#000000##000000
##338B1B1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#268676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1b;
/* rgb */ color: rgb(51, 139, 27);
/* oklch */ color: oklch(56.2% 0.167 140.1);
Tailwind
colors: {
  custom: {
    50: '#77ae61',
    500: '#338b1b',
    950: '#000000',
  },
}
SCSS
$custom: #338b1b;
$custom-light: #77ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1b",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 107.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56205,
    "c": 0.16657,
    "h": 140.1
  },
  "luminance": 0.19248
}

Semantic roles & 50–950 ramp

primary
#338B1B
secondary
#A345BC
accent
#3DEAC5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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