#171F50#171F50

#171F50 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.090 H 271.8°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#171F50
RGBrgb(23, 31, 80)
HSLhsl(232, 55%, 20%)
HSVhsv(232, 71%, 31%)
CMYKcmyk(71.2%, 61.2%, 0%, 68.6%)
CIE-LABlab(14.07, 14.84, -31.24)
CIE-LCHlch(14.07, 34.58, 295.41°)
OKLaboklab(26.49% 0.0029 -0.0898)
OKLCHoklch(26.49% 0.09 271.8)
XYZxyz(2.2908, 1.7411, 7.8032)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F50 #504817
analogous
#173B50 #171F50 #2B1750
triadic
#171F50 #50171F #1F5017
tetradic
#171F50 #50173B #504817 #17502B
square
#171F50 #50173B #504817 #17502B
split-complementary
#171F50 #502B17 #3B5017
monochromatic
#070918 #090D20 #171F50 #253180 #3244AF

Accessibility & contrast

On white

15.58
#171F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F50
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F50#FFFFFF#000000##FFFFFF
##171F501.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171f50;
/* rgb */ color: rgb(23, 31, 80);
/* oklch */ color: oklch(26.5% 0.090 271.8);
Tailwind
colors: {
  custom: {
    50: '#5c5a81',
    500: '#171f50',
    950: '#000000',
  },
}
SCSS
$custom: #171f50;
$custom-light: #5c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#171f50",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 231.579,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26491,
    "c": 0.08987,
    "h": 271.8
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#171F50
secondary
#877D3C
accent
#CA49DF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171F50

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

Preview Lab → · Contrast checker → · Palette generator →

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