#308F1F#308F1F

#308F1F is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.2% C 0.170 H 141.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#308F1F
RGBrgb(48, 143, 31)
HSLhsl(111, 64%, 34%)
HSVhsv(111, 78%, 56%)
CMYKcmyk(66.4%, 0%, 78.3%, 43.9%)
CIE-LABlab(52.25, -48.43, 47.86)
CIE-LCHlch(52.25, 68.08, 135.34°)
OKLaboklab(57.25% -0.1324 0.1072)
OKLCHoklch(57.25% 0.17 141)
XYZxyz(11.2881, 20.3711, 4.6332)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308F1F #7E1F8F
analogous
#688F1F #308F1F #1F8F46
triadic
#308F1F #1F308F #8F1F30
tetradic
#308F1F #1F688F #7E1F8F #8F461F
square
#308F1F #1F688F #7E1F8F #8F461F
split-complementary
#308F1F #461F8F #8F1F68
monochromatic
#0E2A09 #1F5D14 #308F1F #41C12A #64D94F

Accessibility & contrast

On white

4.14
#308F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#308F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308F1F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308F1F#FFFFFF#000000##000000
##308F1F1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938104
Deuteranopia (green-blind)
#877A2C
Tritanopia (blue-blind)
#1F8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #308f1f;
/* rgb */ color: rgb(48, 143, 31);
/* oklch */ color: oklch(57.2% 0.170 141.0);
Tailwind
colors: {
  custom: {
    50: '#76b164',
    500: '#308f1f',
    950: '#000000',
  },
}
SCSS
$custom: #308f1f;
$custom-light: #76b164;
$custom-dark: #000000;
JSON
{
  "hex": "#308f1f",
  "rgb": {
    "r": 48,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 110.893,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57247,
    "c": 0.17039,
    "h": 141
  },
  "luminance": 0.20372
}

Semantic roles & 50–950 ramp

primary
#308F1F
secondary
#AB4EBC
accent
#40E7CE
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #308F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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