#171F53#171F53

#171F53 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.095 H 271.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#171F53
RGBrgb(23, 31, 83)
HSLhsl(232, 57%, 21%)
HSVhsv(232, 72%, 33%)
CMYKcmyk(72.3%, 62.7%, 0%, 67.5%)
CIE-LABlab(14.32, 16.07, -32.86)
CIE-LCHlch(14.32, 36.58, 296.06°)
OKLaboklab(26.77% 0.003 -0.0946)
OKLCHoklch(26.77% 0.095 271.8)
XYZxyz(2.4041, 1.7864, 8.4001)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F53 #534B17
analogous
#173D53 #171F53 #2D1753
triadic
#171F53 #53171F #1F5317
tetradic
#171F53 #53173D #534B17 #17532D
square
#171F53 #53173D #534B17 #17532D
split-complementary
#171F53 #532D17 #3D5317
monochromatic
#070918 #0A0D23 #171F53 #243183 #3243B3

Accessibility & contrast

On white

15.47
#171F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F53
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F53#FFFFFF#000000##FFFFFF
##171F531.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171f53;
/* rgb */ color: rgb(23, 31, 83);
/* oklch */ color: oklch(26.8% 0.095 271.8);
Tailwind
colors: {
  custom: {
    50: '#5d5a84',
    500: '#171f53',
    950: '#000000',
  },
}
SCSS
$custom: #171f53;
$custom-light: #5d5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#171f53",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 232,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26766,
    "c": 0.09463,
    "h": 271.8
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#171F53
secondary
#8A803C
accent
#CC48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F53

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

Preview Lab → · Contrast checker → · Palette generator →

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