#181F2D#181F2D

#181F2D is a very dark, muted blue. Relative luminance 0.014; OKLCH L 23.9% C 0.029 H 263.8°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#181F2D
RGBrgb(24, 31, 45)
HSLhsl(220, 30%, 14%)
HSVhsv(220, 47%, 18%)
CMYKcmyk(46.7%, 31.1%, 0%, 82.4%)
CIE-LABlab(11.71, 1.34, -10.36)
CIE-LCHlch(11.71, 10.44, 277.38°)
OKLaboklab(23.93% -0.0031 -0.0288)
OKLCHoklch(23.93% 0.029 263.8)
XYZxyz(1.3402, 1.3636, 2.6747)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F2D #2D2618
analogous
#18292D #181F2D #1B182D
triadic
#181F2D #2D181F #1F2D18
tetradic
#181F2D #2D1829 #2D2618 #182D1B
square
#181F2D #2D1829 #2D2618 #182D1B
split-complementary
#181F2D #2D1B18 #292D18
monochromatic
#0B0E14 #0B0E14 #181F2D #2D3A55 #43567D

Accessibility & contrast

On white

16.50
#181F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#181F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F2D
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F2D#FFFFFF#000000##FFFFFF
##181F2D1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A202E
Deuteranopia (green-blind)
#181E2D
Tritanopia (blue-blind)
#112224
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181f2d;
/* rgb */ color: rgb(24, 31, 45);
/* oklch */ color: oklch(23.9% 0.029 263.8);
Tailwind
colors: {
  custom: {
    50: '#555a66',
    500: '#181f2d',
    950: '#000000',
  },
}
SCSS
$custom: #181f2d;
$custom-light: #555a66;
$custom-dark: #000000;
JSON
{
  "hex": "#181f2d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 220,
    "s": 30.435,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23931,
    "c": 0.02895,
    "h": 263.8
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#181F2D
secondary
#62563F
accent
#A561C7
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#030305
muted
#78787A

Preview Lab

Preview with #181F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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