#18271E#18271E

#18271E is a dark, muted green. Relative luminance 0.017; OKLCH L 25.6% C 0.027 H 157.6°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#18271E
RGBrgb(24, 39, 30)
HSLhsl(144, 24%, 12%)
HSVhsv(144, 38%, 15%)
CMYKcmyk(38.5%, 0%, 23.1%, 84.7%)
CIE-LABlab(14.05, -8.85, 3.94)
CIE-LCHlch(14.05, 9.69, 156.00°)
OKLaboklab(25.59% -0.0246 0.0102)
OKLCHoklch(25.59% 0.027 157.6)
XYZxyz(1.3365, 1.7389, 1.4933)
Luminance0.0174 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18271E #271821
analogous
#1A2718 #18271E #182726
triadic
#18271E #1E1827 #271E18
tetradic
#18271E #181A27 #271821 #272618
square
#18271E #181A27 #271821 #272618
split-complementary
#18271E #261827 #27181A
monochromatic
#0C130F #0C130F #18271E #2F4D3B #477358

Accessibility & contrast

On white

15.58
#18271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#18271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18271E
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18271E#FFFFFF#000000##FFFFFF
##18271E1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27251E
Deuteranopia (green-blind)
#24231F
Tritanopia (blue-blind)
#152724
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18271e;
/* rgb */ color: rgb(24, 39, 30);
/* oklch */ color: oklch(25.6% 0.027 157.6);
Tailwind
colors: {
  custom: {
    50: '#556159',
    500: '#18271e',
    950: '#000000',
  },
}
SCSS
$custom: #18271e;
$custom-light: #556159;
$custom-dark: #000000;
JSON
{
  "hex": "#18271e",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 144,
    "s": 23.81,
    "l": 12.353
  },
  "oklch": {
    "l": 0.25589,
    "c": 0.0266,
    "h": 157.6
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#18271E
secondary
#5A4050
accent
#689DC0
background
#F4F5F5
surface
#E8E9E9
border
#C4C5C5
text
#030503
muted
#787978

Preview Lab

Preview with #18271E

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

Preview Lab → · Contrast checker → · Palette generator →

#18271E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva