#307F1F#307F1F

#307F1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.151 H 140.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#307F1F
RGBrgb(48, 127, 31)
HSLhsl(109, 61%, 31%)
HSVhsv(109, 76%, 50%)
CMYKcmyk(62.2%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.85, -42.54, 42.50)
CIE-LCHlch(46.85, 60.13, 135.03°)
OKLaboklab(52.77% -0.1165 0.096)
OKLCHoklch(52.77% 0.151 140.5)
XYZxyz(9.0552, 15.9052, 3.8889)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307F1F #6E1F7F
analogous
#607F1F #307F1F #1F7F3E
triadic
#307F1F #1F307F #7F1F30
tetradic
#307F1F #1F607F #6E1F7F #7F3E1F
square
#307F1F #1F607F #6E1F7F #7F3E1F
split-complementary
#307F1F #3E1F7F #7F1F60
monochromatic
#0B1D07 #1D4E13 #307F1F #43B02B #5FD246

Accessibility & contrast

On white

5.02
#307F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#307F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307F1F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307F1F#FFFFFF#000000##FFFFFF
##307F1F1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#257B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #307f1f;
/* rgb */ color: rgb(48, 127, 31);
/* oklch */ color: oklch(52.8% 0.151 140.5);
Tailwind
colors: {
  custom: {
    50: '#73a561',
    500: '#307f1f',
    950: '#000000',
  },
}
SCSS
$custom: #307f1f;
$custom-light: #73a561;
$custom-dark: #000000;
JSON
{
  "hex": "#307f1f",
  "rgb": {
    "r": 48,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 109.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.15102,
    "h": 140.5
  },
  "luminance": 0.15906
}

Semantic roles & 50–950 ramp

primary
#307F1F
secondary
#9F48B2
accent
#44E4C8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #307F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#307F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva