#18173F#18173F

#18173F is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.074 H 280.1°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#18173F
RGBrgb(24, 23, 63)
HSLhsl(242, 47%, 17%)
HSVhsv(242, 63%, 25%)
CMYKcmyk(61.9%, 63.5%, 0%, 75.3%)
CIE-LABlab(10.30, 14.23, -25.51)
CIE-LCHlch(10.30, 29.22, 299.16°)
OKLaboklab(23.25% 0.013 -0.073)
OKLCHoklch(23.25% 0.074 280.1)
XYZxyz(1.5800, 1.1658, 4.8434)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18173F #3E3F17
analogous
#172A3F #18173F #2C173F
triadic
#18173F #3F1817 #173F18
tetradic
#18173F #3F172A #3E3F17 #173F2C
square
#18173F #3F172A #3E3F17 #173F2C
split-complementary
#18173F #3F2C17 #2A3F17
monochromatic
#090816 #090816 #18173F #29276C #3A3899

Accessibility & contrast

On white

17.03
#18173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18173F
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18173F#FFFFFF#000000##FFFFFF
##18173F1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#062028
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18173f;
/* rgb */ color: rgb(24, 23, 63);
/* oklch */ color: oklch(23.2% 0.074 280.1);
Tailwind
colors: {
  custom: {
    50: '#595374',
    500: '#18173f',
    950: '#000000',
  },
}
SCSS
$custom: #18173f;
$custom-light: #595374;
$custom-dark: #000000;
JSON
{
  "hex": "#18173f",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 241.5,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23247,
    "c": 0.07418,
    "h": 280.1
  },
  "luminance": 0.01166
}

Semantic roles & 50–950 ramp

primary
#18173F
secondary
#74763C
accent
#D652D3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18173F

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

Preview Lab → · Contrast checker → · Palette generator →

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