#30531B#30531B

#30531B is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.093 H 135.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#30531B
RGBrgb(48, 83, 27)
HSLhsl(98, 51%, 22%)
HSVhsv(98, 67%, 33%)
CMYKcmyk(42.2%, 0%, 67.5%, 67.5%)
CIE-LABlab(31.56, -24.00, 28.12)
CIE-LCHlch(31.56, 36.97, 130.48°)
OKLaboklab(40.19% -0.0666 0.0653)
OKLCHoklch(40.19% 0.093 135.6)
XYZxyz(4.5099, 6.8938, 2.1297)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30531B #3E1B53
analogous
#4C531B #30531B #1B5322
triadic
#30531B #1B3053 #531B30
tetradic
#30531B #1B4C53 #3E1B53 #53221B
square
#30531B #1B4C53 #3E1B53 #53221B
split-complementary
#30531B #221B53 #531B4C
monochromatic
#0D1708 #15250C #30531B #4B812A #65AF39

Accessibility & contrast

On white

8.83
#30531B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#30531B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30531B
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30531B#FFFFFF#000000##FFFFFF
##30531B1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C15
Deuteranopia (green-blind)
#51491F
Tritanopia (blue-blind)
#2F5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #30531b;
/* rgb */ color: rgb(48, 83, 27);
/* oklch */ color: oklch(40.2% 0.093 135.6);
Tailwind
colors: {
  custom: {
    50: '#6b835a',
    500: '#30531b',
    950: '#000000',
  },
}
SCSS
$custom: #30531b;
$custom-light: #6b835a;
$custom-dark: #000000;
JSON
{
  "hex": "#30531b",
  "rgb": {
    "r": 48,
    "g": 83,
    "b": 27
  },
  "hsl": {
    "h": 97.5,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.40192,
    "c": 0.09324,
    "h": 135.6
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#30531B
secondary
#6E4189
accent
#4DDAA6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #30531B

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

Preview Lab → · Contrast checker → · Palette generator →

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