#30731B#30731B

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

Color values

HEX#30731B
RGBrgb(48, 115, 27)
HSLhsl(106, 62%, 28%)
HSVhsv(106, 77%, 45%)
CMYKcmyk(58.3%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.72, -38.18, 39.89)
CIE-LCHlch(42.72, 55.21, 133.74°)
OKLaboklab(49.35% -0.105 0.09)
OKLCHoklch(49.35% 0.138 139.4)
XYZxyz(7.5472, 12.9683, 3.1421)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30731B #5E1B73
analogous
#5C731B #30731B #1B7332
triadic
#30731B #1B3073 #731B30
tetradic
#30731B #1B5C73 #5E1B73 #73321B
square
#30731B #1B5C73 #5E1B73 #73321B
split-complementary
#30731B #321B73 #731B5C
monochromatic
#0A1906 #1B410F #30731B #45A527 #5CD038

Accessibility & contrast

On white

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

On black

3.59
#30731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##30731B#FFFFFF#000000##FFFFFF
##30731B1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680A
Deuteranopia (green-blind)
#6E6324
Tritanopia (blue-blind)
#296F62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #30731b;
/* rgb */ color: rgb(48, 115, 27);
/* oklch */ color: oklch(49.4% 0.138 139.4);
Tailwind
colors: {
  custom: {
    50: '#709c5e',
    500: '#30731b',
    950: '#000000',
  },
}
SCSS
$custom: #30731b;
$custom-light: #709c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#30731b",
  "rgb": {
    "r": 48,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 105.682,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49351,
    "c": 0.1383,
    "h": 139.4
  },
  "luminance": 0.12969
}

Semantic roles & 50–950 ramp

primary
#30731B
secondary
#8F42A8
accent
#43E5BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #30731B

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

Preview Lab → · Contrast checker → · Palette generator →

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