#171D53#171D53

#171D53 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.098 H 272.9°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#171D53
RGBrgb(23, 29, 83)
HSLhsl(234, 57%, 21%)
HSVhsv(234, 72%, 33%)
CMYKcmyk(72.3%, 65.1%, 0%, 67.5%)
CIE-LABlab(13.74, 17.54, -33.81)
CIE-LCHlch(13.74, 38.09, 297.43°)
OKLaboklab(26.33% 0.0049 -0.0974)
OKLCHoklch(26.33% 0.098 272.9)
XYZxyz(2.3535, 1.6852, 8.3832)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D53 #534D17
analogous
#173B53 #171D53 #2F1753
triadic
#171D53 #53171D #1D5317
tetradic
#171D53 #53173B #534D17 #17532F
square
#171D53 #53173B #534D17 #17532F
split-complementary
#171D53 #532F17 #3B5317
monochromatic
#070818 #0A0C23 #171D53 #242E83 #323EB3

Accessibility & contrast

On white

15.71
#171D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171D53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D53
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D53#FFFFFF#000000##FFFFFF
##171D531.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171d53;
/* rgb */ color: rgb(23, 29, 83);
/* oklch */ color: oklch(26.3% 0.098 272.9);
Tailwind
colors: {
  custom: {
    50: '#5d5884',
    500: '#171d53',
    950: '#000000',
  },
}
SCSS
$custom: #171d53;
$custom-light: #5d5884;
$custom-dark: #000000;
JSON
{
  "hex": "#171d53",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 83
  },
  "hsl": {
    "h": 234,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26332,
    "c": 0.09752,
    "h": 272.9
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#171D53
secondary
#8A823C
accent
#D148E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D53

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

Preview Lab → · Contrast checker → · Palette generator →

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