#181738#181738

#181738 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.062 H 281.6°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#181738
RGBrgb(24, 23, 56)
HSLhsl(242, 42%, 15%)
HSVhsv(242, 59%, 22%)
CMYKcmyk(57.1%, 58.9%, 0%, 78%)
CIE-LABlab(9.74, 11.53, -21.43)
CIE-LCHlch(9.74, 24.33, 298.28°)
OKLaboklab(22.65% 0.0125 -0.061)
OKLCHoklch(22.65% 0.062 281.6)
XYZxyz(1.3967, 1.0924, 3.8779)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181738 #373817
analogous
#172638 #181738 #281738
triadic
#181738 #381817 #173818
tetradic
#181738 #381726 #373817 #173828
square
#181738 #381726 #373817 #173828
split-complementary
#181738 #382817 #263817
monochromatic
#090916 #090916 #181738 #2B2963 #3D3B8F

Accessibility & contrast

On white

17.23
#181738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#181738 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181738
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181738#FFFFFF#000000##FFFFFF
##1817381.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081C39
Deuteranopia (green-blind)
#061A37
Tritanopia (blue-blind)
#0C1E24
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181738;
/* rgb */ color: rgb(24, 23, 56);
/* oklch */ color: oklch(22.6% 0.062 281.6);
Tailwind
colors: {
  custom: {
    50: '#58536f',
    500: '#181738',
    950: '#000000',
  },
}
SCSS
$custom: #181738;
$custom-light: #58536f;
$custom-dark: #000000;
JSON
{
  "hex": "#181738",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 56
  },
  "hsl": {
    "h": 241.818,
    "s": 41.772,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22646,
    "c": 0.06228,
    "h": 281.6
  },
  "luminance": 0.01093
}

Semantic roles & 50–950 ramp

primary
#181738
secondary
#6D6E3C
accent
#D256CE
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #181738

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

Preview Lab → · Contrast checker → · Palette generator →

#181738 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva