#18173A#18173A

#18173A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.066 H 281.1°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#18173A
RGBrgb(24, 23, 58)
HSLhsl(242, 43%, 16%)
HSVhsv(242, 60%, 23%)
CMYKcmyk(58.6%, 60.3%, 0%, 77.3%)
CIE-LABlab(9.89, 12.29, -22.61)
CIE-LCHlch(9.89, 25.74, 298.54°)
OKLaboklab(22.81% 0.0127 -0.0645)
OKLCHoklch(22.81% 0.066 281.1)
XYZxyz(1.4466, 1.1124, 4.1407)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18173A #393A17
analogous
#17273A #18173A #29173A
triadic
#18173A #3A1817 #173A18
tetradic
#18173A #3A1727 #393A17 #173A29
square
#18173A #3A1727 #393A17 #173A29
split-complementary
#18173A #3A2917 #273A17
monochromatic
#090916 #090916 #18173A #2A2866 #3C3A92

Accessibility & contrast

On white

17.18
#18173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18173A
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18173A#FFFFFF#000000##FFFFFF
##18173A1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3B
Deuteranopia (green-blind)
#041A39
Tritanopia (blue-blind)
#0B1F25
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #18173a;
/* rgb */ color: rgb(24, 23, 58);
/* oklch */ color: oklch(22.8% 0.066 281.1);
Tailwind
colors: {
  custom: {
    50: '#585370',
    500: '#18173a',
    950: '#000000',
  },
}
SCSS
$custom: #18173a;
$custom-light: #585370;
$custom-dark: #000000;
JSON
{
  "hex": "#18173a",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 241.714,
    "s": 43.21,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22813,
    "c": 0.06573,
    "h": 281.1
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#18173A
secondary
#6F713C
accent
#D355CF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #18173A

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

Preview Lab → · Contrast checker → · Palette generator →

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