#171C4E#171C4E

#171C4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.091 H 273.7°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#171C4E
RGBrgb(23, 28, 78)
HSLhsl(235, 54%, 20%)
HSVhsv(235, 71%, 31%)
CMYKcmyk(70.5%, 64.1%, 0%, 69.4%)
CIE-LABlab(13.00, 16.26, -31.60)
CIE-LCHlch(13.00, 35.54, 297.23°)
OKLaboklab(25.64% 0.006 -0.0909)
OKLCHoklch(25.64% 0.091 273.7)
XYZxyz(2.1433, 1.5625, 7.3949)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C4E #4E4917
analogous
#17384E #171C4E #2D174E
triadic
#171C4E #4E171C #1C4E17
tetradic
#171C4E #4E1738 #4E4917 #174E2D
square
#171C4E #4E1738 #4E4917 #174E2D
split-complementary
#171C4E #4E2D17 #384E17
monochromatic
#070818 #090B1F #171C4E #252D7D #333EAD

Accessibility & contrast

On white

16.00
#171C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C4E
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C4E#FFFFFF#000000##FFFFFF
##171C4E1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171c4e;
/* rgb */ color: rgb(23, 28, 78);
/* oklch */ color: oklch(25.6% 0.091 273.7);
Tailwind
colors: {
  custom: {
    50: '#5c5880',
    500: '#171c4e',
    950: '#000000',
  },
}
SCSS
$custom: #171c4e;
$custom-light: #5c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#171c4e",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 234.545,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25642,
    "c": 0.09111,
    "h": 273.7
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#171C4E
secondary
#857E3C
accent
#D04ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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