#171D47#171D47

#171D47 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.078 H 273.3°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#171D47
RGBrgb(23, 29, 71)
HSLhsl(233, 51%, 18%)
HSVhsv(233, 68%, 28%)
CMYKcmyk(67.6%, 59.2%, 0%, 72.2%)
CIE-LABlab(12.71, 12.66, -27.24)
CIE-LCHlch(12.71, 30.04, 294.93°)
OKLaboklab(25.24% 0.0046 -0.0781)
OKLCHoklch(25.24% 0.078 273.3)
XYZxyz(1.9297, 1.5157, 6.1509)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D47 #474117
analogous
#173547 #171D47 #291747
triadic
#171D47 #47171D #1D4717
tetradic
#171D47 #471735 #474117 #174729
square
#171D47 #471735 #474117 #174729
split-complementary
#171D47 #472917 #354717
monochromatic
#070917 #080A19 #171D47 #263075 #3543A3

Accessibility & contrast

On white

16.11
#171D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171D47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D47
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D47#FFFFFF#000000##FFFFFF
##171D471.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042348
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171d47;
/* rgb */ color: rgb(23, 29, 71);
/* oklch */ color: oklch(25.2% 0.078 273.3);
Tailwind
colors: {
  custom: {
    50: '#5a587a',
    500: '#171d47',
    950: '#000000',
  },
}
SCSS
$custom: #171d47;
$custom-light: #5a587a;
$custom-dark: #000000;
JSON
{
  "hex": "#171d47",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 71
  },
  "hsl": {
    "h": 232.5,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25235,
    "c": 0.07823,
    "h": 273.3
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#171D47
secondary
#7E763C
accent
#C94DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171D47

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

Preview Lab → · Contrast checker → · Palette generator →

#171D47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva