#171845#171845

#171845 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.083 H 277.2°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#171845
RGBrgb(23, 24, 69)
HSLhsl(239, 50%, 18%)
HSVhsv(239, 67%, 27%)
CMYKcmyk(66.7%, 65.2%, 0%, 72.9%)
CIE-LABlab(11.03, 15.62, -28.57)
CIE-LCHlch(11.03, 32.56, 298.67°)
OKLaboklab(23.93% 0.0103 -0.082)
OKLCHoklch(23.93% 0.083 277.2)
XYZxyz(1.7538, 1.2650, 5.7808)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171845 #454417
analogous
#172F45 #171845 #2D1745
triadic
#171845 #451718 #184517
tetradic
#171845 #45172F #454417 #17452D
square
#171845 #45172F #454417 #17452D
split-complementary
#171845 #452D17 #2F4517
monochromatic
#080817 #080817 #171845 #262873 #3638A1

Accessibility & contrast

On white

16.76
#171845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#171845 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171845
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171845#FFFFFF#000000##FFFFFF
##1718451.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171845;
/* rgb */ color: rgb(23, 24, 69);
/* oklch */ color: oklch(23.9% 0.083 277.2);
Tailwind
colors: {
  custom: {
    50: '#5a5479',
    500: '#171845',
    950: '#000000',
  },
}
SCSS
$custom: #171845;
$custom-light: #5a5479;
$custom-dark: #000000;
JSON
{
  "hex": "#171845",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 69
  },
  "hsl": {
    "h": 238.696,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23928,
    "c": 0.0827,
    "h": 277.2
  },
  "luminance": 0.01265
}

Semantic roles & 50–950 ramp

primary
#171845
secondary
#7C7B3C
accent
#D64EDA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040209
muted
#79787B

Preview Lab

Preview with #171845

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

Preview Lab → · Contrast checker → · Palette generator →

#171845 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva