#171C50#171C50

#171C50 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.094 H 273.6°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#171C50
RGBrgb(23, 28, 80)
HSLhsl(235, 55%, 20%)
HSVhsv(235, 71%, 31%)
CMYKcmyk(71.2%, 65%, 0%, 68.6%)
CIE-LABlab(13.18, 17.07, -32.68)
CIE-LCHlch(13.18, 36.87, 297.58°)
OKLaboklab(25.83% 0.0059 -0.0941)
OKLCHoklch(25.83% 0.094 273.6)
XYZxyz(2.2161, 1.5917, 7.7783)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C50 #504B17
analogous
#173850 #171C50 #2E1750
triadic
#171C50 #50171C #1C5017
tetradic
#171C50 #501738 #504B17 #17502E
square
#171C50 #501738 #504B17 #17502E
split-complementary
#171C50 #502E17 #385017
monochromatic
#070818 #090B20 #171C50 #252D80 #323DAF

Accessibility & contrast

On white

15.93
#171C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C50
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C50#FFFFFF#000000##FFFFFF
##171C501.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171c50;
/* rgb */ color: rgb(23, 28, 80);
/* oklch */ color: oklch(25.8% 0.094 273.6);
Tailwind
colors: {
  custom: {
    50: '#5c5882',
    500: '#171c50',
    950: '#000000',
  },
}
SCSS
$custom: #171c50;
$custom-light: #5c5882;
$custom-dark: #000000;
JSON
{
  "hex": "#171c50",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 234.737,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.09428,
    "h": 273.6
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#171C50
secondary
#87813C
accent
#D249DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171C50

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

Preview Lab → · Contrast checker → · Palette generator →

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