#18174F#18174F

#18174F is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.100 H 277.1°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#18174F
RGBrgb(24, 23, 79)
HSLhsl(241, 55%, 20%)
HSVhsv(241, 71%, 31%)
CMYKcmyk(69.6%, 70.9%, 0%, 69%)
CIE-LABlab(11.77, 20.49, -34.29)
CIE-LCHlch(11.77, 39.95, 300.85°)
OKLaboklab(24.78% 0.0123 -0.0988)
OKLCHoklch(24.78% 0.1 277.1)
XYZxyz(2.0939, 1.3713, 7.5500)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18174F #4E4F17
analogous
#17324F #18174F #34174F
triadic
#18174F #4F1817 #174F18
tetradic
#18174F #4F1732 #4E4F17 #174F34
square
#18174F #4F1732 #4E4F17 #174F34
split-complementary
#18174F #4F3417 #324F17
monochromatic
#070718 #0A0920 #18174F #26257E #3533AE

Accessibility & contrast

On white

16.48
#18174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#18174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18174F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18174F#FFFFFF#000000##FFFFFF
##18174F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18174f;
/* rgb */ color: rgb(24, 23, 79);
/* oklch */ color: oklch(24.8% 0.100 277.1);
Tailwind
colors: {
  custom: {
    50: '#5d5481',
    500: '#18174f',
    950: '#000000',
  },
}
SCSS
$custom: #18174f;
$custom-light: #5d5481;
$custom-dark: #000000;
JSON
{
  "hex": "#18174f",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 241.071,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.24783,
    "c": 0.0996,
    "h": 277.1
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#18174F
secondary
#85863C
accent
#DE4ADC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18174F

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

Preview Lab → · Contrast checker → · Palette generator →

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