#171F40#171F40

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

Color values

HEX#171F40
RGBrgb(23, 31, 64)
HSLhsl(228, 47%, 17%)
HSVhsv(228, 64%, 25%)
CMYKcmyk(64.1%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.81, 8.30, -22.19)
CIE-LCHlch(12.81, 23.70, 290.51°)
OKLaboklab(25.14% 0.0011 -0.0632)
OKLCHoklch(25.14% 0.063 271)
XYZxyz(1.7684, 1.5322, 5.0520)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F40 #403817
analogous
#173440 #171F40 #241740
triadic
#171F40 #40171F #1F4017
tetradic
#171F40 #401734 #403817 #174024
square
#171F40 #401734 #403817 #174024
split-complementary
#171F40 #402417 #344017
monochromatic
#080B17 #080B17 #171F40 #27356D #374B9A

Accessibility & contrast

On white

16.07
#171F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F40
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F40#FFFFFF#000000##FFFFFF
##171F401.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#0B1F3F
Tritanopia (blue-blind)
#02262C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171f40;
/* rgb */ color: rgb(23, 31, 64);
/* oklch */ color: oklch(25.1% 0.063 271.0);
Tailwind
colors: {
  custom: {
    50: '#585a75',
    500: '#171f40',
    950: '#000000',
  },
}
SCSS
$custom: #171f40;
$custom-light: #585a75;
$custom-dark: #000000;
JSON
{
  "hex": "#171f40",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 228.293,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25142,
    "c": 0.06323,
    "h": 271
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#171F40
secondary
#776B3C
accent
#BD51D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #171F40

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

Preview Lab → · Contrast checker → · Palette generator →

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