#1B540F#1B540F

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

Color values

HEX#1B540F
RGBrgb(27, 84, 15)
HSLhsl(110, 70%, 19%)
HSVhsv(110, 82%, 33%)
CMYKcmyk(67.9%, 0%, 82.1%, 67.1%)
CIE-LABlab(30.90, -32.56, 32.58)
CIE-LCHlch(30.90, 46.06, 134.98°)
OKLaboklab(39.36% -0.0892 0.0731)
OKLCHoklch(39.36% 0.115 140.6)
XYZxyz(3.7084, 6.6078, 1.5318)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B540F #480F54
analogous
#3E540F #1B540F #0F5426
triadic
#1B540F #0F1B54 #540F1B
tetradic
#1B540F #0F3E54 #480F54 #54260F
square
#1B540F #0F3E54 #480F54 #54260F
split-complementary
#1B540F #260F54 #540F3E
monochromatic
#081A05 #0A2006 #1B540F #2C8818 #3CBC22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B540F#FFFFFF#000000##FFFFFF
##1B540F1.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)
#564C02
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#125147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b540f;
/* rgb */ color: rgb(27, 84, 15);
/* oklch */ color: oklch(39.4% 0.115 140.6);
Tailwind
colors: {
  custom: {
    50: '#608553',
    500: '#1b540f',
    950: '#000000',
  },
}
SCSS
$custom: #1b540f;
$custom-light: #608553;
$custom-dark: #000000;
JSON
{
  "hex": "#1b540f",
  "rgb": {
    "r": 27,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 109.565,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39355,
    "c": 0.11532,
    "h": 140.6
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#1B540F
secondary
#7E318E
accent
#3BEDCE
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B03
muted
#7A7C78

Preview Lab

Preview with #1B540F

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

Preview Lab → · Contrast checker → · Palette generator →

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