#307940#307940

#307940 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.114 H 148.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#307940
RGBrgb(48, 121, 64)
HSLhsl(133, 43%, 33%)
HSVhsv(133, 60%, 47%)
CMYKcmyk(60.3%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.18, -35.98, 24.58)
CIE-LCHlch(45.18, 43.57, 145.66°)
OKLaboklab(51.52% -0.0973 0.0602)
OKLCHoklch(51.52% 0.114 148.2)
XYZxyz(8.9811, 14.6725, 7.2083)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307940 #793069
analogous
#447930 #307940 #307964
triadic
#307940 #403079 #794030
tetradic
#307940 #304479 #793069 #796430
square
#307940 #304479 #793069 #796430
split-complementary
#307940 #643079 #793044
monochromatic
#0D2112 #1F4D29 #307940 #41A557 #62C177

Accessibility & contrast

On white

5.34
#307940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#307940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307940
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307940#FFFFFF#000000##FFFFFF
##3079401.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#716844
Tritanopia (blue-blind)
#1E776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #307940;
/* rgb */ color: rgb(48, 121, 64);
/* oklch */ color: oklch(51.5% 0.114 148.2);
Tailwind
colors: {
  custom: {
    50: '#70a076',
    500: '#307940',
    950: '#000000',
  },
}
SCSS
$custom: #307940;
$custom-light: #70a076;
$custom-dark: #000000;
JSON
{
  "hex": "#307940",
  "rgb": {
    "r": 48,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 133.151,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.51519,
    "c": 0.11446,
    "h": 148.2
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#307940
secondary
#A85D98
accent
#55B7D3
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #307940

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

Preview Lab → · Contrast checker → · Palette generator →

#307940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva