#18512A#18512A

#18512A is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.7% C 0.088 H 150.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#18512A
RGBrgb(24, 81, 42)
HSLhsl(139, 54%, 21%)
HSVhsv(139, 70%, 32%)
CMYKcmyk(70.4%, 0%, 48.1%, 68.2%)
CIE-LABlab(30.02, -28.37, 17.64)
CIE-LCHlch(30.02, 33.40, 148.12°)
OKLaboklab(38.71% -0.0766 0.0434)
OKLCHoklch(38.71% 0.088 150.4)
XYZxyz(3.7367, 6.2458, 3.1987)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18512A #51183F
analogous
#225118 #18512A #185146
triadic
#18512A #2A1851 #512A18
tetradic
#18512A #182251 #51183F #514618
square
#18512A #182251 #51183F #514618
split-complementary
#18512A #461851 #511822
monochromatic
#07180C #0A2212 #18512A #268042 #34AF5B

Accessibility & contrast

On white

9.34
#18512A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#18512A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18512A
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18512A#FFFFFF#000000##FFFFFF
##18512A1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A27
Deuteranopia (green-blind)
#4A452D
Tritanopia (blue-blind)
#035048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #18512a;
/* rgb */ color: rgb(24, 81, 42);
/* oklch */ color: oklch(38.7% 0.088 150.4);
Tailwind
colors: {
  custom: {
    50: '#5d8264',
    500: '#18512a',
    950: '#000000',
  },
}
SCSS
$custom: #18512a;
$custom-light: #5d8264;
$custom-dark: #000000;
JSON
{
  "hex": "#18512a",
  "rgb": {
    "r": 24,
    "g": 81,
    "b": 42
  },
  "hsl": {
    "h": 138.947,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38712,
    "c": 0.08801,
    "h": 150.4
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#18512A
secondary
#883D70
accent
#4AAFDE
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #18512A

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

Preview Lab → · Contrast checker → · Palette generator →

#18512A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva