#181A2A#181A2A

#181A2A is a very dark, muted blue. Relative luminance 0.011; OKLCH L 22.4% C 0.031 H 278.1°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#181A2A
RGBrgb(24, 26, 42)
HSLhsl(233, 27%, 13%)
HSVhsv(233, 43%, 16%)
CMYKcmyk(42.9%, 38.1%, 0%, 83.5%)
CIE-LABlab(9.80, 4.04, -11.13)
CIE-LCHlch(9.80, 11.84, 289.97°)
OKLaboklab(22.39% 0.0044 -0.031)
OKLCHoklch(22.39% 0.031 278.1)
XYZxyz(1.1639, 1.1001, 2.3411)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A2A #2A2818
analogous
#18232A #181A2A #1F182A
triadic
#181A2A #2A181A #1A2A18
tetradic
#181A2A #2A1823 #2A2818 #182A1F
square
#181A2A #2A1823 #2A2818 #182A1F
split-complementary
#181A2A #2A1F18 #232A18
monochromatic
#0B0C13 #0B0C13 #181A2A #2E3251 #454A78

Accessibility & contrast

On white

17.21
#181A2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#181A2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A2A
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A2A#FFFFFF#000000##FFFFFF
##181A2A1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151C2B
Deuteranopia (green-blind)
#141A2A
Tritanopia (blue-blind)
#131D20
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181a2a;
/* rgb */ color: rgb(24, 26, 42);
/* oklch */ color: oklch(22.4% 0.031 278.1);
Tailwind
colors: {
  custom: {
    50: '#555663',
    500: '#181a2a',
    950: '#000000',
  },
}
SCSS
$custom: #181a2a;
$custom-light: #555663;
$custom-dark: #000000;
JSON
{
  "hex": "#181a2a",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 42
  },
  "hsl": {
    "h": 233.333,
    "s": 27.273,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2239,
    "c": 0.03131,
    "h": 278.1
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#181A2A
secondary
#5E5B40
accent
#B964C4
background
#F5F5F5
surface
#E8E9EA
border
#C4C5C6
text
#030305
muted
#787879

Preview Lab

Preview with #181A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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