#171F3F#171F3F

#171F3F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.061 H 270.8°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#171F3F
RGBrgb(23, 31, 63)
HSLhsl(228, 47%, 17%)
HSVhsv(228, 63%, 25%)
CMYKcmyk(63.5%, 50.8%, 0%, 75.3%)
CIE-LABlab(12.74, 7.90, -21.60)
CIE-LCHlch(12.74, 23.00, 290.09°)
OKLaboklab(25.07% 0.0009 -0.0615)
OKLCHoklch(25.07% 0.062 270.8)
XYZxyz(1.7402, 1.5209, 4.9035)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F3F #3F3717
analogous
#17333F #171F3F #23173F
triadic
#171F3F #3F171F #1F3F17
tetradic
#171F3F #3F1733 #3F3717 #173F23
square
#171F3F #3F1733 #3F3717 #173F23
split-complementary
#171F3F #3F2317 #333F17
monochromatic
#080B16 #080B16 #171F3F #27356C #384B99

Accessibility & contrast

On white

16.10
#171F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F3F
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F3F#FFFFFF#000000##FFFFFF
##171F3F1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112340
Deuteranopia (green-blind)
#0C1F3E
Tritanopia (blue-blind)
#03262B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171f3f;
/* rgb */ color: rgb(23, 31, 63);
/* oklch */ color: oklch(25.1% 0.061 270.8);
Tailwind
colors: {
  custom: {
    50: '#585a74',
    500: '#171f3f',
    950: '#000000',
  },
}
SCSS
$custom: #171f3f;
$custom-light: #585a74;
$custom-dark: #000000;
JSON
{
  "hex": "#171f3f",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 228,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25065,
    "c": 0.0615,
    "h": 270.8
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#171F3F
secondary
#766A3C
accent
#BC52D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #171F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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