#18173D#18173D

#18173D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.071 H 280.5°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#18173D
RGBrgb(24, 23, 61)
HSLhsl(242, 45%, 16%)
HSVhsv(242, 62%, 24%)
CMYKcmyk(60.7%, 62.3%, 0%, 76.1%)
CIE-LABlab(10.14, 13.46, -24.36)
CIE-LCHlch(10.14, 27.83, 298.91°)
OKLaboklab(23.07% 0.0129 -0.0696)
OKLCHoklch(23.07% 0.071 280.5)
XYZxyz(1.5251, 1.1438, 4.5544)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18173D #3C3D17
analogous
#17293D #18173D #2B173D
triadic
#18173D #3D1817 #173D18
tetradic
#18173D #3D1729 #3C3D17 #173D2B
square
#18173D #3D1729 #3C3D17 #173D2B
split-complementary
#18173D #3D2B17 #293D17
monochromatic
#090816 #090816 #18173D #292869 #3B3996

Accessibility & contrast

On white

17.09
#18173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#18173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18173D
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18173D#FFFFFF#000000##FFFFFF
##18173D1.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031D3E
Deuteranopia (green-blind)
#001A3C
Tritanopia (blue-blind)
#082027
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18173d;
/* rgb */ color: rgb(24, 23, 61);
/* oklch */ color: oklch(23.1% 0.071 280.5);
Tailwind
colors: {
  custom: {
    50: '#595373',
    500: '#18173d',
    950: '#000000',
  },
}
SCSS
$custom: #18173d;
$custom-light: #595373;
$custom-dark: #000000;
JSON
{
  "hex": "#18173d",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 241.579,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23071,
    "c": 0.07083,
    "h": 280.5
  },
  "luminance": 0.01144
}

Semantic roles & 50–950 ramp

primary
#18173D
secondary
#72743C
accent
#D553D2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18173D

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

Preview Lab → · Contrast checker → · Palette generator →

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