#171F47#171F47

#171F47 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.075 H 271.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#171F47
RGBrgb(23, 31, 71)
HSLhsl(230, 51%, 18%)
HSVhsv(230, 68%, 28%)
CMYKcmyk(67.6%, 56.3%, 0%, 72.2%)
CIE-LABlab(13.33, 11.15, -26.24)
CIE-LCHlch(13.33, 28.51, 293.02°)
OKLaboklab(25.71% 0.0022 -0.0751)
OKLCHoklch(25.71% 0.075 271.6)
XYZxyz(1.9803, 1.6169, 6.1678)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F47 #473F17
analogous
#173747 #171F47 #271747
triadic
#171F47 #47171F #1F4717
tetradic
#171F47 #471737 #473F17 #174727
square
#171F47 #471737 #473F17 #174727
split-complementary
#171F47 #472717 #374717
monochromatic
#070A17 #080B19 #171F47 #263375 #3547A3

Accessibility & contrast

On white

15.87
#171F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F47
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F47#FFFFFF#000000##FFFFFF
##171F471.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092448
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171f47;
/* rgb */ color: rgb(23, 31, 71);
/* oklch */ color: oklch(25.7% 0.075 271.6);
Tailwind
colors: {
  custom: {
    50: '#5a5a7a',
    500: '#171f47',
    950: '#000000',
  },
}
SCSS
$custom: #171f47;
$custom-light: #5a5a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#171f47",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 230,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25707,
    "c": 0.07513,
    "h": 271.6
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#171F47
secondary
#7E733C
accent
#C34DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171F47

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

Preview Lab → · Contrast checker → · Palette generator →

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