#12181C#12181C

#12181C is a very dark, near-neutral cyan. Relative luminance 0.009; OKLCH L 20.5% C 0.012 H 237.4°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#12181C
RGBrgb(18, 24, 28)
HSLhsl(204, 22%, 9%)
HSVhsv(204, 36%, 11%)
CMYKcmyk(35.7%, 14.3%, 0%, 89%)
CIE-LABlab(7.82, -1.52, -3.74)
CIE-LCHlch(7.82, 4.03, 247.79°)
OKLaboklab(20.47% -0.0065 -0.0102)
OKLCHoklch(20.47% 0.012 237.4)
XYZxyz(0.7856, 0.8657, 1.2241)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12181C #1C1612
analogous
#121C1B #12181C #12131C
triadic
#12181C #1C1218 #181C12
tetradic
#12181C #1B121C #1C1612 #131C12
square
#12181C #1B121C #1C1612 #131C12
split-complementary
#12181C #1C1213 #1C1B12
monochromatic
#0C1013 #0C1013 #12181C #2A3841 #425867

Accessibility & contrast

On white

17.90
#12181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#12181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12181C
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12181C#FFFFFF#000000##FFFFFF
##12181C1.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16181C
Deuteranopia (green-blind)
#15171C
Tritanopia (blue-blind)
#0F1919
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12181c;
/* rgb */ color: rgb(18, 24, 28);
/* oklch */ color: oklch(20.5% 0.012 237.4);
Tailwind
colors: {
  custom: {
    50: '#4f5458',
    500: '#12181c',
    950: '#000000',
  },
}
SCSS
$custom: #12181c;
$custom-light: #4f5458;
$custom-dark: #000000;
JSON
{
  "hex": "#12181c",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 204,
    "s": 21.739,
    "l": 9.02
  },
  "oklch": {
    "l": 0.2047,
    "c": 0.0121,
    "h": 237.4
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#12181C
secondary
#4F433A
accent
#8B6ABE
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #12181C

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

Preview Lab → · Contrast checker → · Palette generator →

#12181C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva