#181F2E#181F2E

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

Color values

HEX#181F2E
RGBrgb(24, 31, 46)
HSLhsl(221, 31%, 14%)
HSVhsv(221, 48%, 18%)
CMYKcmyk(47.8%, 32.6%, 0%, 82%)
CIE-LABlab(11.77, 1.70, -11.00)
CIE-LCHlch(11.77, 11.13, 278.77°)
OKLaboklab(23.99% -0.0027 -0.0306)
OKLCHoklch(23.99% 0.031 264.9)
XYZxyz(1.3597, 1.3714, 2.7773)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F2E #2E2718
analogous
#182A2E #181F2E #1C182E
triadic
#181F2E #2E181F #1F2E18
tetradic
#181F2E #2E182A #2E2718 #182E1C
square
#181F2E #2E182A #2E2718 #182E1C
split-complementary
#181F2E #2E1C18 #2A2E18
monochromatic
#0A0E14 #0A0E14 #181F2E #2D3A56 #42557E

Accessibility & contrast

On white

16.48
#181F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F2E
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F2E#FFFFFF#000000##FFFFFF
##181F2E1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181f2e;
/* rgb */ color: rgb(24, 31, 46);
/* oklch */ color: oklch(24.0% 0.031 264.9);
Tailwind
colors: {
  custom: {
    50: '#565a66',
    500: '#181f2e',
    950: '#000000',
  },
}
SCSS
$custom: #181f2e;
$custom-light: #565a66;
$custom-dark: #000000;
JSON
{
  "hex": "#181f2e",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 46
  },
  "hsl": {
    "h": 220.909,
    "s": 31.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23989,
    "c": 0.03074,
    "h": 264.9
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#181F2E
secondary
#63573F
accent
#A760C8
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#030306
muted
#78787A

Preview Lab

Preview with #181F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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