#18174A#18174A

#18174A is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.092 H 277.9°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#18174A
RGBrgb(24, 23, 74)
HSLhsl(241, 53%, 19%)
HSVhsv(241, 69%, 29%)
CMYKcmyk(67.6%, 68.9%, 0%, 71%)
CIE-LABlab(11.28, 18.54, -31.63)
CIE-LCHlch(11.28, 36.66, 300.37°)
OKLaboklab(24.28% 0.0127 -0.091)
OKLCHoklch(24.28% 0.092 277.9)
XYZxyz(1.9187, 1.3012, 6.6273)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18174A #494A17
analogous
#17304A #18174A #32174A
triadic
#18174A #4A1817 #174A18
tetradic
#18174A #4A1730 #494A17 #174A32
square
#18174A #4A1730 #494A17 #174A32
split-complementary
#18174A #4A3217 #304A17
monochromatic
#080717 #09081B #18174A #272679 #3634A7

Accessibility & contrast

On white

16.66
#18174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#18174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18174A
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18174A#FFFFFF#000000##FFFFFF
##18174A1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18174a;
/* rgb */ color: rgb(24, 23, 74);
/* oklch */ color: oklch(24.3% 0.092 277.9);
Tailwind
colors: {
  custom: {
    50: '#5c547d',
    500: '#18174a',
    950: '#000000',
  },
}
SCSS
$custom: #18174a;
$custom-light: #5c547d;
$custom-dark: #000000;
JSON
{
  "hex": "#18174a",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 241.176,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24282,
    "c": 0.0919,
    "h": 277.9
  },
  "luminance": 0.01301
}

Semantic roles & 50–950 ramp

primary
#18174A
secondary
#80813C
accent
#DC4CD9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18174A

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

Preview Lab → · Contrast checker → · Palette generator →

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