#18182A#18182A

#18182A is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.9% C 0.035 H 283.1°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#18182A
RGBrgb(24, 24, 42)
HSLhsl(240, 27%, 13%)
HSVhsv(240, 43%, 16%)
CMYKcmyk(42.9%, 42.9%, 0%, 83.5%)
CIE-LABlab(9.11, 5.57, -12.20)
CIE-LCHlch(9.11, 13.42, 294.55°)
OKLaboklab(21.86% 0.0079 -0.0341)
OKLCHoklch(21.86% 0.035 283.1)
XYZxyz(1.1211, 1.0146, 2.3268)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18182A #2A2A18
analogous
#18212A #18182A #21182A
triadic
#18182A #2A1818 #182A18
tetradic
#18182A #2A1821 #2A2A18 #182A21
square
#18182A #2A1821 #2A2A18 #182A21
split-complementary
#18182A #2A2118 #212A18
monochromatic
#0B0B13 #0B0B13 #18182A #2E2E51 #454578

Accessibility & contrast

On white

17.46
#18182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#18182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18182A
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18182A#FFFFFF#000000##FFFFFF
##18182A1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121A2B
Deuteranopia (green-blind)
#12192A
Tritanopia (blue-blind)
#131B1F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #18182a;
/* rgb */ color: rgb(24, 24, 42);
/* oklch */ color: oklch(21.9% 0.035 283.1);
Tailwind
colors: {
  custom: {
    50: '#555463',
    500: '#18182a',
    950: '#000000',
  },
}
SCSS
$custom: #18182a;
$custom-light: #555463;
$custom-dark: #000000;
JSON
{
  "hex": "#18182a",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 240,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21861,
    "c": 0.03499,
    "h": 283.1
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#18182A
secondary
#5E5E40
accent
#C464C4
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030205
muted
#787879

Preview Lab

Preview with #18182A

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

Preview Lab → · Contrast checker → · Palette generator →

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