#18521F#18521F

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

Color values

HEX#18521F
RGBrgb(24, 82, 31)
HSLhsl(127, 55%, 21%)
HSVhsv(127, 71%, 32%)
CMYKcmyk(70.7%, 0%, 62.2%, 67.8%)
CIE-LABlab(30.22, -30.69, 24.21)
CIE-LCHlch(30.22, 39.09, 141.73°)
OKLaboklab(38.82% -0.083 0.0575)
OKLCHoklch(38.82% 0.101 145.3)
XYZxyz(3.6411, 6.3273, 2.3255)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18521F #52184B
analogous
#2E5218 #18521F #18523C
triadic
#18521F #1F1852 #521F18
tetradic
#18521F #182E52 #52184B #523C18
square
#18521F #182E52 #52184B #523C18
split-complementary
#18521F #3C1852 #52182E
monochromatic
#071809 #0A230D #18521F #268131 #34B143

Accessibility & contrast

On white

9.27
#18521F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#18521F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18521F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18521F#FFFFFF#000000##FFFFFF
##18521F1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A1A
Deuteranopia (green-blind)
#4C4523
Tritanopia (blue-blind)
#085047
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #18521f;
/* rgb */ color: rgb(24, 82, 31);
/* oklch */ color: oklch(38.8% 0.101 145.3);
Tailwind
colors: {
  custom: {
    50: '#5d835c',
    500: '#18521f',
    950: '#000000',
  },
}
SCSS
$custom: #18521f;
$custom-light: #5d835c;
$custom-dark: #000000;
JSON
{
  "hex": "#18521f",
  "rgb": {
    "r": 24,
    "g": 82,
    "b": 31
  },
  "hsl": {
    "h": 127.241,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.10095,
    "h": 145.3
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#18521F
secondary
#893D80
accent
#4ACCDE
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#050B04
muted
#797C79

Preview Lab

Preview with #18521F

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

Preview Lab → · Contrast checker → · Palette generator →

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