#171D50#171D50

#171D50 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.093 H 273.0°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#171D50
RGBrgb(23, 29, 80)
HSLhsl(234, 55%, 20%)
HSVhsv(234, 71%, 31%)
CMYKcmyk(71.2%, 63.7%, 0%, 68.6%)
CIE-LABlab(13.47, 16.33, -32.20)
CIE-LCHlch(13.47, 36.10, 296.88°)
OKLaboklab(26.05% 0.0049 -0.0927)
OKLCHoklch(26.05% 0.093 273)
XYZxyz(2.2402, 1.6399, 7.7863)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D50 #504A17
analogous
#173950 #171D50 #2D1750
triadic
#171D50 #50171D #1D5017
tetradic
#171D50 #501739 #504A17 #17502D
square
#171D50 #501739 #504A17 #17502D
split-complementary
#171D50 #502D17 #395017
monochromatic
#070918 #090C20 #171D50 #252E80 #323FAF

Accessibility & contrast

On white

15.81
#171D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171D50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D50
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D50#FFFFFF#000000##FFFFFF
##171D501.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171d50;
/* rgb */ color: rgb(23, 29, 80);
/* oklch */ color: oklch(26.0% 0.093 273.0);
Tailwind
colors: {
  custom: {
    50: '#5c5882',
    500: '#171d50',
    950: '#000000',
  },
}
SCSS
$custom: #171d50;
$custom-light: #5c5882;
$custom-dark: #000000;
JSON
{
  "hex": "#171d50",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 233.684,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26048,
    "c": 0.09281,
    "h": 273
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#171D50
secondary
#877F3C
accent
#CF49DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171D50

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

Preview Lab → · Contrast checker → · Palette generator →

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