#1B540D#1B540D

#1B540D is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.3% C 0.117 H 140.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#1B540D
RGBrgb(27, 84, 13)
HSLhsl(108, 73%, 19%)
HSVhsv(108, 85%, 33%)
CMYKcmyk(67.9%, 0%, 84.5%, 67.1%)
CIE-LABlab(30.88, -32.71, 33.32)
CIE-LCHlch(30.88, 46.69, 134.47°)
OKLaboklab(39.34% -0.0897 0.0744)
OKLCHoklch(39.34% 0.117 140.3)
XYZxyz(3.6948, 6.6024, 1.4604)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B540D #460D54
analogous
#3F540D #1B540D #0D5423
triadic
#1B540D #0D1B54 #540D1B
tetradic
#1B540D #0D3F54 #460D54 #54230D
square
#1B540D #0D3F54 #460D54 #54230D
split-complementary
#1B540D #230D54 #540D3F
monochromatic
#091A04 #0A1F05 #1B540D #2C8915 #3DBE1D

Accessibility & contrast

On white

9.05
#1B540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1B540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B540D
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B540D#FFFFFF#000000##FFFFFF
##1B540D1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C00
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#125147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b540d;
/* rgb */ color: rgb(27, 84, 13);
/* oklch */ color: oklch(39.3% 0.117 140.3);
Tailwind
colors: {
  custom: {
    50: '#608552',
    500: '#1b540d',
    950: '#000000',
  },
}
SCSS
$custom: #1b540d;
$custom-light: #608552;
$custom-dark: #000000;
JSON
{
  "hex": "#1b540d",
  "rgb": {
    "r": 27,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 108.169,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3934,
    "c": 0.11651,
    "h": 140.3
  },
  "luminance": 0.06603
}

Semantic roles & 50–950 ramp

primary
#1B540D
secondary
#7C2E8F
accent
#38F0CC
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B02
muted
#7A7C78

Preview Lab

Preview with #1B540D

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

Preview Lab → · Contrast checker → · Palette generator →

#1B540D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva