#181828#181828

#181828 is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.7% C 0.031 H 283.5°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#181828
RGBrgb(24, 24, 40)
HSLhsl(240, 25%, 13%)
HSVhsv(240, 40%, 16%)
CMYKcmyk(40%, 40%, 0%, 84.3%)
CIE-LABlab(9.00, 4.88, -10.90)
CIE-LCHlch(9.00, 11.94, 294.11°)
OKLaboklab(21.73% 0.0073 -0.0303)
OKLCHoklch(21.73% 0.031 283.5)
XYZxyz(1.0862, 1.0006, 2.1430)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181828 #282818
analogous
#182028 #181828 #201828
triadic
#181828 #281818 #182818
tetradic
#181828 #281820 #282818 #182820
square
#181828 #281820 #282818 #182820
split-complementary
#181828 #282018 #202818
monochromatic
#0B0B13 #0B0B13 #181828 #2F2F4E #464674

Accessibility & contrast

On white

17.50
#181828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#181828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181828
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181828#FFFFFF#000000##FFFFFF
##1818281.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131A29
Deuteranopia (green-blind)
#131928
Tritanopia (blue-blind)
#141B1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #181828;
/* rgb */ color: rgb(24, 24, 40);
/* oklch */ color: oklch(21.7% 0.031 283.5);
Tailwind
colors: {
  custom: {
    50: '#555462',
    500: '#181828',
    950: '#000000',
  },
}
SCSS
$custom: #181828;
$custom-light: #555462;
$custom-dark: #000000;
JSON
{
  "hex": "#181828",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 240,
    "s": 25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21733,
    "c": 0.03119,
    "h": 283.5
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#181828
secondary
#5C5C40
accent
#C166C1
background
#F4F4F5
surface
#E8E7EA
border
#C4C3C6
text
#030205
muted
#787879

Preview Lab

Preview with #181828

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

Preview Lab → · Contrast checker → · Palette generator →

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