#181F2F#181F2F

#181F2F is a very dark, muted blue. Relative luminance 0.014; OKLCH L 24.0% C 0.033 H 265.9°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#181F2F
RGBrgb(24, 31, 47)
HSLhsl(222, 32%, 14%)
HSVhsv(222, 49%, 18%)
CMYKcmyk(48.9%, 34%, 0%, 81.6%)
CIE-LABlab(11.82, 2.06, -11.64)
CIE-LCHlch(11.82, 11.82, 280.02°)
OKLaboklab(24.05% -0.0023 -0.0325)
OKLCHoklch(24.05% 0.033 265.9)
XYZxyz(1.3796, 1.3793, 2.8823)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F2F #2F2818
analogous
#182B2F #181F2F #1D182F
triadic
#181F2F #2F181F #1F2F18
tetradic
#181F2F #2F182B #2F2818 #182F1D
square
#181F2F #2F182B #2F2818 #182F1D
split-complementary
#181F2F #2F1D18 #2B2F18
monochromatic
#0A0D14 #0A0D14 #181F2F #2D3A58 #415480

Accessibility & contrast

On white

16.46
#181F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#181F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F2F
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F2F#FFFFFF#000000##FFFFFF
##181F2F1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192030
Deuteranopia (green-blind)
#171E2F
Tritanopia (blue-blind)
#102225
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181f2f;
/* rgb */ color: rgb(24, 31, 47);
/* oklch */ color: oklch(24.0% 0.033 265.9);
Tailwind
colors: {
  custom: {
    50: '#565a67',
    500: '#181f2f',
    950: '#000000',
  },
}
SCSS
$custom: #181f2f;
$custom-light: #565a67;
$custom-dark: #000000;
JSON
{
  "hex": "#181f2f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 221.739,
    "s": 32.394,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24049,
    "c": 0.03254,
    "h": 265.9
  },
  "luminance": 0.01379
}

Semantic roles & 50–950 ramp

primary
#181F2F
secondary
#64593F
accent
#A85FC9
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#030306
muted
#78787A

Preview Lab

Preview with #181F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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