#181B2F#181B2F

#181B2F is a very dark, muted blue. Relative luminance 0.012; OKLCH L 23.0% C 0.039 H 276.4°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#181B2F
RGBrgb(24, 27, 47)
HSLhsl(232, 32%, 14%)
HSVhsv(232, 49%, 18%)
CMYKcmyk(48.9%, 42.6%, 0%, 81.6%)
CIE-LABlab(10.43, 5.07, -13.81)
CIE-LCHlch(10.43, 14.71, 290.18°)
OKLaboklab(22.98% 0.0043 -0.0387)
OKLCHoklch(22.98% 0.039 276.4)
XYZxyz(1.2816, 1.1832, 2.8496)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B2F #2F2C18
analogous
#18272F #181B2F #21182F
triadic
#181B2F #2F181B #1B2F18
tetradic
#181B2F #2F1827 #2F2C18 #182F21
square
#181B2F #2F1827 #2F2C18 #182F21
split-complementary
#181B2F #2F2118 #272F18
monochromatic
#0A0C14 #0A0C14 #181B2F #2D3258 #414A80

Accessibility & contrast

On white

16.98
#181B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181B2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B2F
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B2F#FFFFFF#000000##FFFFFF
##181B2F1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D30
Deuteranopia (green-blind)
#131B2F
Tritanopia (blue-blind)
#111F22
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #181b2f;
/* rgb */ color: rgb(24, 27, 47);
/* oklch */ color: oklch(23.0% 0.039 276.4);
Tailwind
colors: {
  custom: {
    50: '#565767',
    500: '#181b2f',
    950: '#000000',
  },
}
SCSS
$custom: #181b2f;
$custom-light: #565767;
$custom-dark: #000000;
JSON
{
  "hex": "#181b2f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 47
  },
  "hsl": {
    "h": 232.174,
    "s": 32.394,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22975,
    "c": 0.03896,
    "h": 276.4
  },
  "luminance": 0.01183
}

Semantic roles & 50–950 ramp

primary
#181B2F
secondary
#645F3F
accent
#BB5FC9
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#030306
muted
#78787A

Preview Lab

Preview with #181B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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