#171E53#171E53

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

Color values

HEX#171E53
RGBrgb(23, 30, 83)
HSLhsl(233, 57%, 21%)
HSVhsv(233, 72%, 33%)
CMYKcmyk(72.3%, 63.9%, 0%, 67.5%)
CIE-LABlab(14.03, 16.81, -33.34)
CIE-LCHlch(14.03, 37.33, 296.75°)
OKLaboklab(26.55% 0.004 -0.096)
OKLCHoklch(26.55% 0.096 272.4)
XYZxyz(2.3784, 1.7350, 8.3915)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E53 #534C17
analogous
#173C53 #171E53 #2E1753
triadic
#171E53 #53171E #1E5317
tetradic
#171E53 #53173C #534C17 #17532E
square
#171E53 #53173C #534C17 #17532E
split-complementary
#171E53 #532E17 #3C5317
monochromatic
#070918 #0A0D23 #171E53 #242F83 #3241B3

Accessibility & contrast

On white

15.59
#171E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E53
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E53#FFFFFF#000000##FFFFFF
##171E531.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171e53;
/* rgb */ color: rgb(23, 30, 83);
/* oklch */ color: oklch(26.5% 0.096 272.4);
Tailwind
colors: {
  custom: {
    50: '#5d5984',
    500: '#171e53',
    950: '#000000',
  },
}
SCSS
$custom: #171e53;
$custom-light: #5d5984;
$custom-dark: #000000;
JSON
{
  "hex": "#171e53",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 233,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26547,
    "c": 0.09608,
    "h": 272.4
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#171E53
secondary
#8A813C
accent
#CE48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E53

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

Preview Lab → · Contrast checker → · Palette generator →

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