#18521B#18521B

#18521B is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.105 H 144.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#18521B
RGBrgb(24, 82, 27)
HSLhsl(123, 55%, 21%)
HSVhsv(123, 71%, 32%)
CMYKcmyk(70.7%, 0%, 67.1%, 67.8%)
CIE-LABlab(30.18, -31.25, 26.28)
CIE-LCHlch(30.18, 40.83, 139.94°)
OKLaboklab(38.77% -0.0847 0.0616)
OKLCHoklch(38.77% 0.105 144)
XYZxyz(3.5916, 6.3075, 2.0649)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18521B #52184F
analogous
#325218 #18521B #185238
triadic
#18521B #1B1852 #521B18
tetradic
#18521B #183252 #52184F #523818
square
#18521B #183252 #52184F #523818
split-complementary
#18521B #381852 #521832
monochromatic
#071808 #0A230B #18521B #26812B #34B13A

Accessibility & contrast

On white

9.29
#18521B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#18521B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18521B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18521B#FFFFFF#000000##FFFFFF
##18521B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A15
Deuteranopia (green-blind)
#4D4520
Tritanopia (blue-blind)
#0A5046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #18521b;
/* rgb */ color: rgb(24, 82, 27);
/* oklch */ color: oklch(38.8% 0.105 144.0);
Tailwind
colors: {
  custom: {
    50: '#5e835a',
    500: '#18521b',
    950: '#000000',
  },
}
SCSS
$custom: #18521b;
$custom-light: #5e835a;
$custom-dark: #000000;
JSON
{
  "hex": "#18521b",
  "rgb": {
    "r": 24,
    "g": 82,
    "b": 27
  },
  "hsl": {
    "h": 123.103,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.38766,
    "c": 0.1047,
    "h": 144
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#18521B
secondary
#893D85
accent
#4AD6DE
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #18521B

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

Preview Lab → · Contrast checker → · Palette generator →

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