#12181E#12181E

#12181E is a very dark, near-neutral cyan. Relative luminance 0.009; OKLCH L 20.6% C 0.015 H 248.5°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#12181E
RGBrgb(18, 24, 30)
HSLhsl(210, 25%, 9%)
HSVhsv(210, 40%, 12%)
CMYKcmyk(40%, 20%, 0%, 88.2%)
CIE-LABlab(7.91, -0.89, -5.12)
CIE-LCHlch(7.91, 5.19, 260.09°)
OKLaboklab(20.57% -0.0055 -0.014)
OKLCHoklch(20.57% 0.015 248.5)
XYZxyz(0.8104, 0.8756, 1.3543)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12181E #1E1812
analogous
#121E1E #12181E #12121E
triadic
#12181E #1E1218 #181E12
tetradic
#12181E #1E121E #1E1812 #121E12
square
#12181E #1E121E #1E1812 #121E12
split-complementary
#12181E #1E1212 #1E1E12
monochromatic
#0B0F13 #0B0F13 #12181E #293744 #40556B

Accessibility & contrast

On white

17.87
#12181E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#12181E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12181E
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12181E#FFFFFF#000000##FFFFFF
##12181E1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16181E
Deuteranopia (green-blind)
#14171E
Tritanopia (blue-blind)
#0E191A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12181e;
/* rgb */ color: rgb(18, 24, 30);
/* oklch */ color: oklch(20.6% 0.015 248.5);
Tailwind
colors: {
  custom: {
    50: '#505459',
    500: '#12181e',
    950: '#000000',
  },
}
SCSS
$custom: #12181e;
$custom-light: #505459;
$custom-dark: #000000;
JSON
{
  "hex": "#12181e",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 30
  },
  "hsl": {
    "h": 210,
    "s": 25,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20571,
    "c": 0.01506,
    "h": 248.5
  },
  "luminance": 0.00876
}

Semantic roles & 50–950 ramp

primary
#12181E
secondary
#52463A
accent
#9466C1
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #12181E

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

Preview Lab → · Contrast checker → · Palette generator →

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