#181C12#181C12

#181C12 is a very dark, near-neutral yellow-green. Relative luminance 0.011; OKLCH L 21.9% C 0.020 H 125.7°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#181C12
RGBrgb(24, 28, 18)
HSLhsl(84, 22%, 9%)
HSVhsv(84, 36%, 11%)
CMYKcmyk(14.3%, 0%, 35.7%, 89%)
CIE-LABlab(9.55, -4.30, 6.01)
CIE-LCHlch(9.55, 7.39, 125.59°)
OKLaboklab(21.87% -0.0115 0.016)
OKLCHoklch(21.87% 0.02 125.7)
XYZxyz(0.9011, 1.0684, 0.7309)
Luminance0.0107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C12 #16121C
analogous
#1C1B12 #181C12 #131C12
triadic
#181C12 #12181C #1C1218
tetradic
#181C12 #121C1B #16121C #1C1213
square
#181C12 #121C1B #16121C #1C1213
split-complementary
#181C12 #12131C #1B121C
monochromatic
#10130C #10130C #181C12 #38412A #586742

Accessibility & contrast

On white

17.30
#181C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#181C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C12
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C12#FFFFFF#000000##FFFFFF
##181C121.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1B11
Deuteranopia (green-blind)
#1D1B12
Tritanopia (blue-blind)
#191B19
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181c12;
/* rgb */ color: rgb(24, 28, 18);
/* oklch */ color: oklch(21.9% 0.020 125.7);
Tailwind
colors: {
  custom: {
    50: '#54584f',
    500: '#181c12',
    950: '#000000',
  },
}
SCSS
$custom: #181c12;
$custom-light: #54584f;
$custom-dark: #000000;
JSON
{
  "hex": "#181c12",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 18
  },
  "hsl": {
    "h": 84,
    "s": 21.739,
    "l": 9.02
  },
  "oklch": {
    "l": 0.21871,
    "c": 0.01971,
    "h": 125.7
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#181C12
secondary
#433A4F
accent
#6ABE8B
background
#F4F5F4
surface
#E7E9E7
border
#C3C5C3
text
#020302
muted
#787878

Preview Lab

Preview with #181C12

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

Preview Lab → · Contrast checker → · Palette generator →

#181C12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva