#1B4012#1B4012

#1B4012 is a dark, moderate green. Relative luminance 0.039; OKLCH L 33.2% C 0.085 H 139.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1B4012
RGBrgb(27, 64, 18)
HSLhsl(108, 56%, 16%)
HSVhsv(108, 72%, 25%)
CMYKcmyk(57.8%, 0%, 71.9%, 74.9%)
CIE-LABlab(23.48, -23.61, 23.48)
CIE-LCHlch(23.48, 33.30, 135.16°)
OKLaboklab(33.25% -0.0648 0.0545)
OKLCHoklch(33.25% 0.085 139.9)
XYZxyz(2.3945, 3.9433, 1.2071)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4012 #371240
analogous
#324012 #1B4012 #124020
triadic
#1B4012 #121B40 #40121B
tetradic
#1B4012 #123240 #371240 #402012
square
#1B4012 #123240 #371240 #402012
split-complementary
#1B4012 #201240 #401232
monochromatic
#0A1807 #0A1807 #1B4012 #2F701F #43A02D

Accessibility & contrast

On white

11.74
#1B4012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1B4012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4012
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4012#FFFFFF#000000##FFFFFF
##1B40121.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A0D
Deuteranopia (green-blind)
#3D3716
Tritanopia (blue-blind)
#173E36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b4012;
/* rgb */ color: rgb(27, 64, 18);
/* oklch */ color: oklch(33.2% 0.085 139.9);
Tailwind
colors: {
  custom: {
    50: '#5c7552',
    500: '#1b4012',
    950: '#000000',
  },
}
SCSS
$custom: #1b4012;
$custom-light: #5c7552;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4012",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 108.261,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.33246,
    "c": 0.08464,
    "h": 139.9
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#1B4012
secondary
#6C3579
accent
#48DFC2
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #1B4012

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

Preview Lab → · Contrast checker → · Palette generator →

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