#18182C#18182C

#18182C is a very dark, muted blue. Relative luminance 0.010; OKLCH L 22.0% C 0.039 H 282.7°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#18182C
RGBrgb(24, 24, 44)
HSLhsl(240, 29%, 13%)
HSVhsv(240, 45%, 17%)
CMYKcmyk(45.5%, 45.5%, 0%, 82.7%)
CIE-LABlab(9.23, 6.28, -13.49)
CIE-LCHlch(9.23, 14.88, 294.97°)
OKLaboklab(21.99% 0.0086 -0.0378)
OKLCHoklch(21.99% 0.039 282.7)
XYZxyz(1.1578, 1.0293, 2.5200)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18182C #2C2C18
analogous
#18222C #18182C #22182C
triadic
#18182C #2C1818 #182C18
tetradic
#18182C #2C1822 #2C2C18 #182C22
square
#18182C #2C1822 #2C2C18 #182C22
split-complementary
#18182C #2C2218 #222C18
monochromatic
#0B0B14 #0B0B14 #18182C #2E2E54 #43437B

Accessibility & contrast

On white

17.42
#18182C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#18182C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18182C
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18182C#FFFFFF#000000##FFFFFF
##18182C1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121B2D
Deuteranopia (green-blind)
#11192C
Tritanopia (blue-blind)
#121C1F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #18182c;
/* rgb */ color: rgb(24, 24, 44);
/* oklch */ color: oklch(22.0% 0.039 282.7);
Tailwind
colors: {
  custom: {
    50: '#565465',
    500: '#18182c',
    950: '#000000',
  },
}
SCSS
$custom: #18182c;
$custom-light: #565465;
$custom-dark: #000000;
JSON
{
  "hex": "#18182c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 44
  },
  "hsl": {
    "h": 240,
    "s": 29.412,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21993,
    "c": 0.03876,
    "h": 282.7
  },
  "luminance": 0.01029
}

Semantic roles & 50–950 ramp

primary
#18182C
secondary
#60603F
accent
#C662C6
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030205
muted
#78787A

Preview Lab

Preview with #18182C

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

Preview Lab → · Contrast checker → · Palette generator →

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