#18512D#18512D

#18512D is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.085 H 152.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#18512D
RGBrgb(24, 81, 45)
HSLhsl(142, 54%, 21%)
HSVhsv(142, 70%, 32%)
CMYKcmyk(70.4%, 0%, 44.4%, 68.2%)
CIE-LABlab(30.08, -27.76, 15.90)
CIE-LCHlch(30.08, 31.99, 150.19°)
OKLaboklab(38.78% -0.075 0.0395)
OKLCHoklch(38.78% 0.085 152.2)
XYZxyz(3.7925, 6.2681, 3.4921)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18512D #51183C
analogous
#1F5118 #18512D #185149
triadic
#18512D #2D1851 #512D18
tetradic
#18512D #181F51 #51183C #514918
square
#18512D #181F51 #51183C #514918
split-complementary
#18512D #491851 #51181F
monochromatic
#07180D #0A2213 #18512D #268047 #34AF61

Accessibility & contrast

On white

9.32
#18512D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18512D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18512D#FFFFFF#000000##FFFFFF
##18512D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A2A
Deuteranopia (green-blind)
#4A452F
Tritanopia (blue-blind)
#025048
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #18512d;
/* rgb */ color: rgb(24, 81, 45);
/* oklch */ color: oklch(38.8% 0.085 152.2);
Tailwind
colors: {
  custom: {
    50: '#5d8266',
    500: '#18512d',
    950: '#000000',
  },
}
SCSS
$custom: #18512d;
$custom-light: #5d8266;
$custom-dark: #000000;
JSON
{
  "hex": "#18512d",
  "rgb": {
    "r": 24,
    "g": 81,
    "b": 45
  },
  "hsl": {
    "h": 142.105,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38775,
    "c": 0.08475,
    "h": 152.2
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#18512D
secondary
#883D6C
accent
#4AA7DE
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #18512D

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

Preview Lab → · Contrast checker → · Palette generator →

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