#18541B#18541B

#18541B is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.4% C 0.108 H 143.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#18541B
RGBrgb(24, 84, 27)
HSLhsl(123, 56%, 21%)
HSVhsv(123, 71%, 33%)
CMYKcmyk(71.4%, 0%, 67.9%, 67.1%)
CIE-LABlab(30.91, -32.07, 27.11)
CIE-LCHlch(30.91, 41.99, 139.79°)
OKLaboklab(39.37% -0.0869 0.0633)
OKLCHoklch(39.37% 0.108 143.9)
XYZxyz(3.7446, 6.6136, 2.1159)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18541B #541851
analogous
#335418 #18541B #185439
triadic
#18541B #1B1854 #541B18
tetradic
#18541B #183354 #541851 #543918
square
#18541B #183354 #541851 #543918
split-complementary
#18541B #391854 #541833
monochromatic
#071808 #0A240C #18541B #26842A #33B33A

Accessibility & contrast

On white

9.04
#18541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#18541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18541B
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18541B#FFFFFF#000000##FFFFFF
##18541B1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C14
Deuteranopia (green-blind)
#4E4720
Tritanopia (blue-blind)
#095248
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #18541b;
/* rgb */ color: rgb(24, 84, 27);
/* oklch */ color: oklch(39.4% 0.108 143.9);
Tailwind
colors: {
  custom: {
    50: '#5e855a',
    500: '#18541b',
    950: '#000000',
  },
}
SCSS
$custom: #18541b;
$custom-light: #5e855a;
$custom-dark: #000000;
JSON
{
  "hex": "#18541b",
  "rgb": {
    "r": 24,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 123,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.39374,
    "c": 0.10754,
    "h": 143.9
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#18541B
secondary
#8B3D87
accent
#49D7DF
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #18541B

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

Preview Lab → · Contrast checker → · Palette generator →

#18541B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva