#30731F#30731F

#30731F is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.136 H 140.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#30731F
RGBrgb(48, 115, 31)
HSLhsl(108, 58%, 29%)
HSVhsv(108, 73%, 45%)
CMYKcmyk(58.3%, 0%, 73%, 54.9%)
CIE-LABlab(42.75, -37.84, 38.29)
CIE-LCHlch(42.75, 53.83, 134.66°)
OKLaboklab(49.39% -0.1038 0.0872)
OKLCHoklch(49.39% 0.136 140)
XYZxyz(7.5967, 12.9881, 3.4027)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30731F #621F73
analogous
#5A731F #30731F #1F7338
triadic
#30731F #1F3073 #731F30
tetradic
#30731F #1F5A73 #621F73 #73381F
square
#30731F #1F5A73 #621F73 #73381F
split-complementary
#30731F #381F73 #731F5A
monochromatic
#0A1806 #1C4312 #30731F #44A32C #5DCC41

Accessibility & contrast

On white

5.84
#30731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#30731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #30731F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30731F#FFFFFF#000000##FFFFFF
##30731F1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6E6327
Tritanopia (blue-blind)
#286F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #30731f;
/* rgb */ color: rgb(48, 115, 31);
/* oklch */ color: oklch(49.4% 0.136 140.0);
Tailwind
colors: {
  custom: {
    50: '#709c60',
    500: '#30731f',
    950: '#000000',
  },
}
SCSS
$custom: #30731f;
$custom-light: #709c60;
$custom-dark: #000000;
JSON
{
  "hex": "#30731f",
  "rgb": {
    "r": 48,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 107.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49385,
    "c": 0.13561,
    "h": 140
  },
  "luminance": 0.12989
}

Semantic roles & 50–950 ramp

primary
#30731F
secondary
#9347A7
accent
#47E1C2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #30731F

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

Preview Lab → · Contrast checker → · Palette generator →

#30731F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva