#18173E#18173E

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

Color values

HEX#18173E
RGBrgb(24, 23, 62)
HSLhsl(242, 46%, 17%)
HSVhsv(242, 63%, 24%)
CMYKcmyk(61.3%, 62.9%, 0%, 75.7%)
CIE-LABlab(10.22, 13.84, -24.94)
CIE-LCHlch(10.22, 28.53, 299.04°)
OKLaboklab(23.16% 0.0129 -0.0713)
OKLCHoklch(23.16% 0.073 280.3)
XYZxyz(1.5523, 1.1547, 4.6976)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18173E #3D3E17
analogous
#172A3E #18173E #2C173E
triadic
#18173E #3E1817 #173E18
tetradic
#18173E #3E172A #3D3E17 #173E2C
square
#18173E #3E172A #3D3E17 #173E2C
split-complementary
#18173E #3E2C17 #2A3E17
monochromatic
#090816 #090816 #18173E #29286B #3B3897

Accessibility & contrast

On white

17.06
#18173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18173E
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18173E#FFFFFF#000000##FFFFFF
##18173E1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021D3F
Deuteranopia (green-blind)
#001A3D
Tritanopia (blue-blind)
#072027
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #18173e;
/* rgb */ color: rgb(24, 23, 62);
/* oklch */ color: oklch(23.2% 0.073 280.3);
Tailwind
colors: {
  custom: {
    50: '#595373',
    500: '#18173e',
    950: '#000000',
  },
}
SCSS
$custom: #18173e;
$custom-light: #595373;
$custom-dark: #000000;
JSON
{
  "hex": "#18173e",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 241.538,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23159,
    "c": 0.07251,
    "h": 280.3
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#18173E
secondary
#73753C
accent
#D652D2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #18173E

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

Preview Lab → · Contrast checker → · Palette generator →

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