#308C1F#308C1F

#308C1F is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.167 H 140.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#308C1F
RGBrgb(48, 140, 31)
HSLhsl(111, 64%, 34%)
HSVhsv(111, 78%, 55%)
CMYKcmyk(65.7%, 0%, 77.9%, 45.1%)
CIE-LABlab(51.25, -47.35, 46.87)
CIE-LCHlch(51.25, 66.63, 135.29°)
OKLaboklab(56.41% -0.1295 0.1052)
OKLCHoklch(56.41% 0.167 140.9)
XYZxyz(10.8438, 19.4824, 4.4851)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308C1F #7B1F8C
analogous
#668C1F #308C1F #1F8C44
triadic
#308C1F #1F308C #8C1F30
tetradic
#308C1F #1F668C #7B1F8C #8C441F
square
#308C1F #1F668C #7B1F8C #8C441F
split-complementary
#308C1F #441F8C #8C1F66
monochromatic
#0E2809 #1F5A14 #308C1F #41BE2A #63D84E

Accessibility & contrast

On white

4.29
#308C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#308C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308C1F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308C1F#FFFFFF#000000##000000
##308C1F1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#208777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #308c1f;
/* rgb */ color: rgb(48, 140, 31);
/* oklch */ color: oklch(56.4% 0.167 140.9);
Tailwind
colors: {
  custom: {
    50: '#75ae63',
    500: '#308c1f',
    950: '#000000',
  },
}
SCSS
$custom: #308c1f;
$custom-light: #75ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#308c1f",
  "rgb": {
    "r": 48,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 110.642,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56412,
    "c": 0.16684,
    "h": 140.9
  },
  "luminance": 0.19483
}

Semantic roles & 50–950 ramp

primary
#308C1F
secondary
#A94CBB
accent
#41E7CD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #308C1F

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

Preview Lab → · Contrast checker → · Palette generator →

#308C1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva