#171F3D#171F3D

#171F3D is a very dark, muted blue. Relative luminance 0.015; OKLCH L 24.9% C 0.058 H 270.5°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#171F3D
RGBrgb(23, 31, 61)
HSLhsl(227, 45%, 16%)
HSVhsv(227, 62%, 24%)
CMYKcmyk(62.3%, 49.2%, 0%, 76.1%)
CIE-LABlab(12.60, 7.10, -20.42)
CIE-LCHlch(12.60, 21.62, 289.18°)
OKLaboklab(24.91% 0.0005 -0.058)
OKLCHoklch(24.91% 0.058 270.5)
XYZxyz(1.6854, 1.4989, 4.6145)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F3D #3D3517
analogous
#17323D #171F3D #22173D
triadic
#171F3D #3D171F #1F3D17
tetradic
#171F3D #3D1732 #3D3517 #173D22
square
#171F3D #3D1732 #3D3517 #173D22
split-complementary
#171F3D #3D2217 #323D17
monochromatic
#080B16 #080B16 #171F3D #283669 #394C96

Accessibility & contrast

On white

16.16
#171F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F3D
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F3D#FFFFFF#000000##FFFFFF
##171F3D1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12223E
Deuteranopia (green-blind)
#0E1F3C
Tritanopia (blue-blind)
#04262B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171f3d;
/* rgb */ color: rgb(23, 31, 61);
/* oklch */ color: oklch(24.9% 0.058 270.5);
Tailwind
colors: {
  custom: {
    50: '#575a72',
    500: '#171f3d',
    950: '#000000',
  },
}
SCSS
$custom: #171f3d;
$custom-light: #575a72;
$custom-dark: #000000;
JSON
{
  "hex": "#171f3d",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 61
  },
  "hsl": {
    "h": 227.368,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24914,
    "c": 0.058,
    "h": 270.5
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#171F3D
secondary
#74683C
accent
#BA53D5
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030308
muted
#78787B

Preview Lab

Preview with #171F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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