#308D1F#308D1F

#308D1F is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.168 H 141.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#308D1F
RGBrgb(48, 141, 31)
HSLhsl(111, 64%, 34%)
HSVhsv(111, 78%, 55%)
CMYKcmyk(66%, 0%, 78%, 44.7%)
CIE-LABlab(51.58, -47.71, 47.20)
CIE-LCHlch(51.58, 67.12, 135.31°)
OKLaboklab(56.69% -0.1305 0.1059)
OKLCHoklch(56.69% 0.168 141)
XYZxyz(10.9906, 19.7760, 4.5340)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308D1F #7C1F8D
analogous
#678D1F #308D1F #1F8D45
triadic
#308D1F #1F308D #8D1F30
tetradic
#308D1F #1F678D #7C1F8D #8D451F
square
#308D1F #1F678D #7C1F8D #8D451F
split-complementary
#308D1F #451F8D #8D1F67
monochromatic
#0E2909 #1F5B14 #308D1F #41BF2A #64D84E

Accessibility & contrast

On white

4.24
#308D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#308D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308D1F
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308D1F#FFFFFF#000000##000000
##308D1F1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#208878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #308d1f;
/* rgb */ color: rgb(48, 141, 31);
/* oklch */ color: oklch(56.7% 0.168 141.0);
Tailwind
colors: {
  custom: {
    50: '#75af63',
    500: '#308d1f',
    950: '#000000',
  },
}
SCSS
$custom: #308d1f;
$custom-light: #75af63;
$custom-dark: #000000;
JSON
{
  "hex": "#308d1f",
  "rgb": {
    "r": 48,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 110.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56691,
    "c": 0.16803,
    "h": 141
  },
  "luminance": 0.19777
}

Semantic roles & 50–950 ramp

primary
#308D1F
secondary
#AA4DBB
accent
#41E7CD
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #308D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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