#18173B#18173B

#18173B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.067 H 280.9°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#18173B
RGBrgb(24, 23, 59)
HSLhsl(242, 44%, 16%)
HSVhsv(242, 61%, 23%)
CMYKcmyk(59.3%, 61%, 0%, 76.9%)
CIE-LABlab(9.97, 12.68, -23.20)
CIE-LCHlch(9.97, 26.44, 298.66°)
OKLaboklab(22.9% 0.0127 -0.0662)
OKLCHoklch(22.9% 0.067 280.9)
XYZxyz(1.4723, 1.1227, 4.2759)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18173B #3A3B17
analogous
#17283B #18173B #2A173B
triadic
#18173B #3B1817 #173B18
tetradic
#18173B #3B1728 #3A3B17 #173B2A
square
#18173B #3B1728 #3A3B17 #173B2A
split-complementary
#18173B #3B2A17 #283B17
monochromatic
#090916 #090916 #18173B #2A2867 #3C3993

Accessibility & contrast

On white

17.15
#18173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#18173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18173B
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18173B#FFFFFF#000000##FFFFFF
##18173B1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3C
Deuteranopia (green-blind)
#031A3A
Tritanopia (blue-blind)
#0A1F26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18173b;
/* rgb */ color: rgb(24, 23, 59);
/* oklch */ color: oklch(22.9% 0.067 280.9);
Tailwind
colors: {
  custom: {
    50: '#585371',
    500: '#18173b',
    950: '#000000',
  },
}
SCSS
$custom: #18173b;
$custom-light: #585371;
$custom-dark: #000000;
JSON
{
  "hex": "#18173b",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 241.667,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.22898,
    "c": 0.06745,
    "h": 280.9
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#18173B
secondary
#70723C
accent
#D454D0
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #18173B

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

Preview Lab → · Contrast checker → · Palette generator →

#18173B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva