#1B511F#1B511F

#1B511F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.6% C 0.098 H 144.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#1B511F
RGBrgb(27, 81, 31)
HSLhsl(124, 50%, 21%)
HSVhsv(124, 67%, 32%)
CMYKcmyk(66.7%, 0%, 61.7%, 68.2%)
CIE-LABlab(29.95, -29.51, 23.91)
CIE-LCHlch(29.95, 37.98, 140.99°)
OKLaboklab(38.63% -0.08 0.0568)
OKLCHoklch(38.63% 0.098 144.6)
XYZxyz(3.6415, 6.2165, 2.3040)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B511F #511B4D
analogous
#32511B #1B511F #1B513A
triadic
#1B511F #1F1B51 #511F1B
tetradic
#1B511F #1B3251 #511B4D #513A1B
square
#1B511F #1B3251 #511B4D #513A1B
split-complementary
#1B511F #3A1B51 #511B32
monochromatic
#081709 #0C230D #1B511F #2A7F31 #3AAD42

Accessibility & contrast

On white

9.36
#1B511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1B511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B511F
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B511F#FFFFFF#000000##FFFFFF
##1B511F1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53491A
Deuteranopia (green-blind)
#4C4523
Tritanopia (blue-blind)
#104F46
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1b511f;
/* rgb */ color: rgb(27, 81, 31);
/* oklch */ color: oklch(38.6% 0.098 144.6);
Tailwind
colors: {
  custom: {
    50: '#5f825c',
    500: '#1b511f',
    950: '#000000',
  },
}
SCSS
$custom: #1b511f;
$custom-light: #5f825c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b511f",
  "rgb": {
    "r": 27,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 124.444,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.38625,
    "c": 0.09809,
    "h": 144.6
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#1B511F
secondary
#874182
accent
#4ECFDA
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1B511F

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

Preview Lab → · Contrast checker → · Palette generator →

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