#30581F#30581F

#30581F is a dark, moderate green. Relative luminance 0.077; OKLCH L 41.7% C 0.097 H 137.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#30581F
RGBrgb(48, 88, 31)
HSLhsl(102, 48%, 23%)
HSVhsv(102, 65%, 35%)
CMYKcmyk(45.5%, 0%, 64.8%, 65.5%)
CIE-LABlab(33.36, -25.98, 28.10)
CIE-LCHlch(33.36, 38.27, 132.76°)
OKLaboklab(41.68% -0.0717 0.0657)
OKLCHoklch(41.68% 0.097 137.5)
XYZxyz(4.9558, 7.7065, 2.5224)
Luminance0.0771 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30581F #471F58
analogous
#4C581F #30581F #1F582A
triadic
#30581F #1F3058 #581F30
tetradic
#30581F #1F4C58 #471F58 #582A1F
square
#30581F #1F4C58 #471F58 #582A1F
split-complementary
#30581F #2A1F58 #581F4C
monochromatic
#0C1708 #172B0F #30581F #49852F #61B33F

Accessibility & contrast

On white

8.26
#30581F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#30581F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30581F
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30581F#FFFFFF#000000##FFFFFF
##30581F1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5119
Deuteranopia (green-blind)
#554D23
Tritanopia (blue-blind)
#2E554C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #30581f;
/* rgb */ color: rgb(48, 88, 31);
/* oklch */ color: oklch(41.7% 0.097 137.5);
Tailwind
colors: {
  custom: {
    50: '#6c875d',
    500: '#30581f',
    950: '#000000',
  },
}
SCSS
$custom: #30581f;
$custom-light: #6c875d;
$custom-dark: #000000;
JSON
{
  "hex": "#30581f",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 31
  },
  "hsl": {
    "h": 102.105,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.41677,
    "c": 0.09721,
    "h": 137.5
  },
  "luminance": 0.07707
}

Semantic roles & 50–950 ramp

primary
#30581F
secondary
#78468D
accent
#50D7AF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #30581F

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

Preview Lab → · Contrast checker → · Palette generator →

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