#1B510C#1B510C

#1B510C is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.113 H 140.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1B510C
RGBrgb(27, 81, 12)
HSLhsl(107, 74%, 18%)
HSVhsv(107, 85%, 32%)
CMYKcmyk(66.7%, 0%, 85.2%, 68.2%)
CIE-LABlab(29.77, -31.58, 32.61)
CIE-LCHlch(29.77, 45.40, 134.08°)
OKLaboklab(38.42% -0.0867 0.0727)
OKLCHoklch(38.42% 0.113 140)
XYZxyz(3.4606, 6.1441, 1.3513)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B510C #420C51
analogous
#3D510C #1B510C #0C511F
triadic
#1B510C #0C1B51 #510C1B
tetradic
#1B510C #0C3D51 #420C51 #511F0C
square
#1B510C #0C3D51 #420C51 #511F0C
split-complementary
#1B510C #1F0C51 #510C3D
monochromatic
#091B04 #091C04 #1B510C #2D8614 #3FBC1C

Accessibility & contrast

On white

9.42
#1B510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1B510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B510C
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B510C#FFFFFF#000000##FFFFFF
##1B510C1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534900
Deuteranopia (green-blind)
#4D4414
Tritanopia (blue-blind)
#144E44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1b510c;
/* rgb */ color: rgb(27, 81, 12);
/* oklch */ color: oklch(38.4% 0.113 140.0);
Tailwind
colors: {
  custom: {
    50: '#608251',
    500: '#1b510c',
    950: '#000000',
  },
}
SCSS
$custom: #1b510c;
$custom-light: #608251;
$custom-dark: #000000;
JSON
{
  "hex": "#1b510c",
  "rgb": {
    "r": 27,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 106.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38419,
    "c": 0.11317,
    "h": 140
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#1B510C
secondary
#782C8C
accent
#37F1C8
background
#F5F8F4
surface
#EAEFE7
border
#C6CAC3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1B510C

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

Preview Lab → · Contrast checker → · Palette generator →

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