#1B511B#1B511B

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

Color values

HEX#1B511B
RGBrgb(27, 81, 27)
HSLhsl(120, 50%, 21%)
HSVhsv(120, 67%, 32%)
CMYKcmyk(66.7%, 0%, 66.7%, 68.2%)
CIE-LABlab(29.90, -30.07, 25.99)
CIE-LCHlch(29.90, 39.75, 139.16°)
OKLaboklab(38.57% -0.0817 0.0609)
OKLCHoklch(38.57% 0.102 143.3)
XYZxyz(3.5921, 6.1967, 2.0435)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B511B #511B51
analogous
#36511B #1B511B #1B5136
triadic
#1B511B #1B1B51 #511B1B
tetradic
#1B511B #1B3651 #511B51 #51361B
square
#1B511B #1B3651 #511B51 #51361B
split-complementary
#1B511B #361B51 #511B36
monochromatic
#081708 #0C230C #1B511B #2A7F2A #3AAD3A

Accessibility & contrast

On white

9.38
#1B511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B511B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B511B#FFFFFF#000000##FFFFFF
##1B511B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534915
Deuteranopia (green-blind)
#4C451F
Tritanopia (blue-blind)
#114F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1b511b;
/* rgb */ color: rgb(27, 81, 27);
/* oklch */ color: oklch(38.6% 0.102 143.3);
Tailwind
colors: {
  custom: {
    50: '#5f8259',
    500: '#1b511b',
    950: '#000000',
  },
}
SCSS
$custom: #1b511b;
$custom-light: #5f8259;
$custom-dark: #000000;
JSON
{
  "hex": "#1b511b",
  "rgb": {
    "r": 27,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 120,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.1019,
    "h": 143.3
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#1B511B
secondary
#874187
accent
#4EDADA
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1B511B

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

Preview Lab → · Contrast checker → · Palette generator →

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