#30541B#30541B

#30541B is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.5% C 0.095 H 135.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#30541B
RGBrgb(48, 84, 27)
HSLhsl(98, 51%, 22%)
HSVhsv(98, 68%, 33%)
CMYKcmyk(42.9%, 0%, 67.9%, 67.1%)
CIE-LABlab(31.92, -24.49, 28.51)
CIE-LCHlch(31.92, 37.59, 130.67°)
OKLaboklab(40.48% -0.0679 0.0661)
OKLCHoklch(40.48% 0.095 135.8)
XYZxyz(4.5870, 7.0479, 2.1554)
Luminance0.0705 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30541B #3F1B54
analogous
#4D541B #30541B #1B5423
triadic
#30541B #1B3054 #541B30
tetradic
#30541B #1B4D54 #3F1B54 #54231B
square
#30541B #1B4D54 #3F1B54 #54231B
split-complementary
#30541B #231B54 #541B4D
monochromatic
#0D1707 #16260C #30541B #4A822A #65B139

Accessibility & contrast

On white

8.72
#30541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#30541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30541B
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30541B#FFFFFF#000000##FFFFFF
##30541B1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D14
Deuteranopia (green-blind)
#524A20
Tritanopia (blue-blind)
#2F5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #30541b;
/* rgb */ color: rgb(48, 84, 27);
/* oklch */ color: oklch(40.5% 0.095 135.8);
Tailwind
colors: {
  custom: {
    50: '#6b845a',
    500: '#30541b',
    950: '#000000',
  },
}
SCSS
$custom: #30541b;
$custom-light: #6b845a;
$custom-dark: #000000;
JSON
{
  "hex": "#30541b",
  "rgb": {
    "r": 48,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 97.895,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.09478,
    "h": 135.8
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#30541B
secondary
#6F418A
accent
#4DDBA7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #30541B

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

Preview Lab → · Contrast checker → · Palette generator →

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