#1B400B#1B400B

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

Color values

HEX#1B400B
RGBrgb(27, 64, 11)
HSLhsl(102, 71%, 15%)
HSVhsv(102, 83%, 25%)
CMYKcmyk(57.8%, 0%, 82.8%, 74.9%)
CIE-LABlab(23.42, -24.33, 26.78)
CIE-LCHlch(23.42, 36.19, 132.25°)
OKLaboklab(33.17% -0.0672 0.0604)
OKLCHoklch(33.17% 0.09 138.1)
XYZxyz(2.3457, 3.9238, 0.9503)
Luminance0.0392 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B400B #300B40
analogous
#36400B #1B400B #0B4016
triadic
#1B400B #0B1B40 #400B1B
tetradic
#1B400B #0B3640 #300B40 #40160B
square
#1B400B #0B3640 #300B40 #40160B
split-complementary
#1B400B #160B40 #400B36
monochromatic
#0B1A04 #0B1A04 #1B400B #317414 #47A81D

Accessibility & contrast

On white

11.77
#1B400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1B400B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B400B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B400B#FFFFFF#000000##FFFFFF
##1B400B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A03
Deuteranopia (green-blind)
#3D3710
Tritanopia (blue-blind)
#183D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b400b;
/* rgb */ color: rgb(27, 64, 11);
/* oklch */ color: oklch(33.2% 0.090 138.1);
Tailwind
colors: {
  custom: {
    50: '#5c754e',
    500: '#1b400b',
    950: '#000000',
  },
}
SCSS
$custom: #1b400b;
$custom-light: #5c754e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b400b",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 101.887,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.09039,
    "h": 138.1
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#1B400B
secondary
#642A7D
accent
#3AEDB7
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#040802
muted
#797B78

Preview Lab

Preview with #1B400B

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

Preview Lab → · Contrast checker → · Palette generator →

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