#308B1F#308B1F

#308B1F is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.166 H 140.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#308B1F
RGBrgb(48, 139, 31)
HSLhsl(111, 64%, 33%)
HSVhsv(111, 78%, 55%)
CMYKcmyk(65.5%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.91, -46.99, 46.54)
CIE-LCHlch(50.91, 66.14, 135.28°)
OKLaboklab(56.13% -0.1286 0.1045)
OKLCHoklch(56.13% 0.166 140.9)
XYZxyz(10.6983, 19.1915, 4.4366)
Luminance0.1919 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308B1F #7A1F8B
analogous
#668B1F #308B1F #1F8B44
triadic
#308B1F #1F308B #8B1F30
tetradic
#308B1F #1F668B #7A1F8B #8B441F
square
#308B1F #1F668B #7A1F8B #8B441F
split-complementary
#308B1F #441F8B #8B1F66
monochromatic
#0D2709 #1F5914 #308B1F #41BD2A #63D74D

Accessibility & contrast

On white

4.34
#308B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#308B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308B1F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308B1F#FFFFFF#000000##000000
##308B1F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#84762B
Tritanopia (blue-blind)
#218676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #308b1f;
/* rgb */ color: rgb(48, 139, 31);
/* oklch */ color: oklch(56.1% 0.166 140.9);
Tailwind
colors: {
  custom: {
    50: '#75ae63',
    500: '#308b1f',
    950: '#000000',
  },
}
SCSS
$custom: #308b1f;
$custom-light: #75ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#308b1f",
  "rgb": {
    "r": 48,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 110.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.16566,
    "h": 140.9
  },
  "luminance": 0.19193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #308B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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