#1B400D#1B400D

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

Color values

HEX#1B400D
RGBrgb(27, 64, 13)
HSLhsl(104, 66%, 15%)
HSVhsv(104, 80%, 25%)
CMYKcmyk(57.8%, 0%, 79.7%, 74.9%)
CIE-LABlab(23.43, -24.15, 25.90)
CIE-LCHlch(23.43, 35.41, 132.99°)
OKLaboklab(33.19% -0.0666 0.0589)
OKLCHoklch(33.19% 0.089 138.5)
XYZxyz(2.3580, 3.9287, 1.0148)
Luminance0.0393 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B400D #320D40
analogous
#35400D #1B400D #0D4018
triadic
#1B400D #0D1B40 #400D1B
tetradic
#1B400D #0D3540 #320D40 #40180D
square
#1B400D #0D3540 #320D40 #40180D
split-complementary
#1B400D #180D40 #400D35
monochromatic
#0B1905 #0B1905 #1B400D #307317 #46A622

Accessibility & contrast

On white

11.76
#1B400D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B400D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B400D#FFFFFF#000000##FFFFFF
##1B400D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A06
Deuteranopia (green-blind)
#3D3712
Tritanopia (blue-blind)
#183E36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b400d;
/* rgb */ color: rgb(27, 64, 13);
/* oklch */ color: oklch(33.2% 0.089 138.5);
Tailwind
colors: {
  custom: {
    50: '#5c754f',
    500: '#1b400d',
    950: '#000000',
  },
}
SCSS
$custom: #1b400d;
$custom-light: #5c754f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b400d",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 103.529,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.0889,
    "h": 138.5
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#1B400D
secondary
#662D7C
accent
#3FE9BA
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #1B400D

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

Preview Lab → · Contrast checker → · Palette generator →

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